function actions_permissions_permission

nittany7 actions_permissions.module actions_permissions_permission()
cis7 actions_permissions.module actions_permissions_permission()
mooc7 actions_permissions.module actions_permissions_permission()

Implements hook_permission().

File

modules/contrib/views_bulk_operations/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;
}