/*
+--------------------------------------------------------------------+
- | 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 CiviCRM_APIv3
* @subpackage API_Activity
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
* @version $Id: Activity.php 30486 2010-11-02 16:12:09Z shot $
*
*/
*
*/
function civicrm_api3_dashboard_create($params) {
- if (!CRM_Utils_Array::value('id', $params)) {
+ if (empty($params['id'])) {
civicrm_api3_verify_one_mandatory($params,
NULL,
array(
- 'name', 'label', 'url', 'fullscreen_url',
+ 'name',
+ 'label',
+ 'url',
+ 'fullscreen_url',
)
);
}
*/
function civicrm_api3_dashboard_get($params) {
$bao = new CRM_Core_BAO_Dashboard();
- _civicrm_api3_dao_set_filter($bao, $params, true, 'Dashboard');
- $dashlets = _civicrm_api3_dao_to_array($bao, $params, true,'Dashboard');
+ _civicrm_api3_dao_set_filter($bao, $params, TRUE, 'Dashboard');
+ $dashlets = _civicrm_api3_dao_to_array($bao, $params, TRUE, 'Dashboard');
return civicrm_api3_create_success($dashlets, $params, 'dashboard', 'get', $bao);
}
else {
return civicrm_api3_create_error('Could not delete dashlet');
}
-}
\ No newline at end of file
+}