'result' => FALSE,
),
);
+
+ if (!CRM_Core_Permission::check('delete in CiviGrant')) {
+ unset(self::$_tasks[1]);
+ }
+
+ CRM_Utils_Hook::searchTasks('grant', self::$_tasks);
+ asort(self::$_tasks);
}
- if (!CRM_Core_Permission::check('delete in CiviGrant')) {
- unset(self::$_tasks[1]);
- }
- CRM_Utils_Hook::searchTasks('grant', self::$_tasks);
- asort(self::$_tasks);
+
return self::$_tasks;
}