You are here

linkit_permissions.module in Linkit 6

Same filename and directory in other branches
  1. 7 plugins/linkit_permissions/linkit_permissions.module

Extend Linkit with permissions.

File

plugins/linkit_permissions/linkit_permissions.module
View source
<?php

/**
 * @file
 * Extend Linkit with permissions.
 */

/**
 * Implementation of hook_perm().
 */
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;
}

Functions

Namesort descending Description
linkit_permissions_perm Implementation of hook_perm().