+--------------------------------------------------------------------+
| CiviCRM version 4.7 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016 |
+ | Copyright CiviCRM LLC (c) 2004-2017 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
*/
/**
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;
}