+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2015 |
+ | Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
/**
- *
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2015
+ * @copyright CiviCRM LLC (c) 2004-2017
*/
/**
static $_optionalTasks = NULL;
/**
- * These tasks are the core set of tasks that the user can perform.
- * on a contact / group of contacts
+ * These tasks are the core set of tasks that the user can perform
+ * on a contact / group of contacts.
*
* @return array
* the set of tasks for a group of contacts
}
}
- //CRM-4418, check for delete
+ // CRM-4418, check for delete
if (!CRM_Core_Permission::check('delete activities')) {
unset(self::$_tasks[1]);
}
+
+ CRM_Utils_Hook::searchTasks('activity', self::$_tasks);
+ asort(self::$_tasks);
}
- CRM_Utils_Hook::searchTasks('activity', self::$_tasks);
- asort(self::$_tasks);
+
return self::$_tasks;
}
/**
- * These tasks are the core set of task titles.
- * on activity
+ * These tasks are the core set of task titles on activity.
*
* @return array
* the set of task titles
}
/**
- * Show tasks selectively based on the permission level.
- * of the user
+ * Show tasks selectively based on the permission level of the user.
*
* @param int $permission
*
}
/**
- * These tasks are the core set of tasks that the user can perform.
- * on activity
+ * These tasks are the core set of tasks that the user can perform on activity.
*
* @param int $value
*