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;
}
'result' => FALSE,
),
);
- }
-
- CRM_Utils_Hook::searchTasks('campaign', self::$_tasks);
- asort(self::$_tasks);
+ CRM_Utils_Hook::searchTasks('campaign', self::$_tasks);
+ asort(self::$_tasks);
+ }
return self::$_tasks;
}
if (!CRM_Core_Permission::check('delete in CiviCase')) {
unset(self::$_tasks[1]);
}
+
+ CRM_Utils_Hook::searchTasks('case', self::$_tasks);
+ asort(self::$_tasks);
}
- CRM_Utils_Hook::searchTasks('case', self::$_tasks);
- asort(self::$_tasks);
return self::$_tasks;
}
if (!$invoicing) {
unset(self::$_tasks[9]);
}
+
CRM_Utils_Hook::searchTasks('contribution', self::$_tasks);
asort(self::$_tasks);
}
if (!CRM_Core_Permission::check('edit event participants')) {
unset(self::$_tasks[4], self::$_tasks[5], self::$_tasks[15]);
}
+
+ CRM_Utils_Hook::searchTasks('event', self::$_tasks);
+ asort(self::$_tasks);
}
- CRM_Utils_Hook::searchTasks('event', self::$_tasks);
- asort(self::$_tasks);
return self::$_tasks;
}
'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;
}
if (!CRM_Core_Permission::check('edit memberships')) {
unset(self::$_tasks[5]);
}
+
+ CRM_Utils_Hook::searchTasks('membership', self::$_tasks);
+ asort(self::$_tasks);
}
- CRM_Utils_Hook::searchTasks('membership', self::$_tasks);
- asort(self::$_tasks);
+
return self::$_tasks;
}
if (!CRM_Core_Permission::check('delete in CiviPledge')) {
unset(self::$_tasks[1]);
}
+
+ CRM_Utils_Hook::searchTasks('pledge', self::$_tasks);
+ asort(self::$_tasks);
}
- CRM_Utils_Hook::searchTasks('pledge', self::$_tasks);
- asort(self::$_tasks);
+
return self::$_tasks;
}