+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
$hook = empty($params['id']) ? 'create' : 'edit';
CRM_Utils_Hook::pre($hook, 'Website', CRM_Utils_Array::value('id', $params), $params);
$hook = empty($params['id']) ? 'create' : 'edit';
CRM_Utils_Hook::pre($hook, 'Website', CRM_Utils_Array::value('id', $params), $params);
$query = 'DELETE FROM civicrm_website WHERE id IN ( ' . implode(',', $ids) . ')';
CRM_Core_DAO::executeQuery($query);
// FIXME: we should return false if the del was unsuccessful
$query = 'DELETE FROM civicrm_website WHERE id IN ( ' . implode(',', $ids) . ')';
CRM_Core_DAO::executeQuery($query);
// FIXME: we should return false if the del was unsuccessful
- static function &getValues(&$params, &$values) {
- $websites = array();
- $website = new CRM_Core_DAO_Website();
+ public static function &getValues(&$params, &$values) {
+ $websites = array();
+ $website = new CRM_Core_DAO_Website();
$params = array(1 => array($id, 'Integer'));
$websites = $values = array();
$params = array(1 => array($id, 'Integer'));
$websites = $values = array();