You are here

function uc_views_bulk_operations_perm in Ubercart Views 6.3

Implementation of hook_perm().

File

uc_views_bulk_operations/uc_views_bulk_operations.module, line 126

Code

function uc_views_bulk_operations_perm() {
  $perms = array();
  if (module_exists('actions_permissions')) {
    foreach (module_invoke_all('order_operations') as $operation) {
      if (is_array($operation['label']) || empty($operation['callback'])) {
        continue;
      }
      $perms[] = actions_permissions_get_perm($operation['label'], $operation['callback']);
    }
  }
  return $perms;
}