You are here

function linkit_permissions_perm in Linkit 6

Implementation of hook_perm().

File

plugins/linkit_permissions/linkit_permissions.module, line 10
Extend Linkit with permissions.

Code

function linkit_permissions_perm() {
  $perms = array(
    'create all links',
  );
  foreach (module_invoke_all('linkit_info_plugins') as $plugin) {
    $perms[] = 'create ' . check_plain($plugin['type']) . ' links';
  }
  return $perms;
}