function actions_permissions_permission in Views Bulk Operations (VBO) 7.3
Implements hook_permission().
File
- ./
actions_permissions.module, line 6
Code
function actions_permissions_permission() {
$permissions = array();
$actions = actions_list() + _actions_permissions_advanced_actions_list();
foreach ($actions as $key => $action) {
$permission = actions_permissions_get_perm($action['label'], $key);
$permissions[$permission] = array(
'title' => t('Execute %label', array(
'%label' => $action['label'],
)),
);
}
return $permissions;
}