linkit_permissions.module in Linkit 6
Same filename and directory in other branches
Extend Linkit with permissions.
File
plugins/linkit_permissions/linkit_permissions.moduleView 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
Name | Description |
---|---|
linkit_permissions_perm | Implementation of hook_perm(). |