<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.4 |
+ | CiviCRM version 4.5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013 |
+ | Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* $Id$
*
*/
$defaults['website'][$id] = $value;
}
}
+ else {
+ // set the default website type
+ $defaults['website'][1]['website_type_id'] = key(CRM_Core_OptionGroup::values('website_type',
+ FALSE, FALSE, FALSE, ' AND is_default = 1'
+ ));
+ }
return $defaults;
}