You are here

function icon_permission in Icon API 7

Implements hook_permission().

Invokes hook_icon_permission() so sub-modules can be grouped together with the Icon API module on the permissions table.

1 string reference to 'icon_permission'
icon_hook_info in ./icon.module
Implements hook_hook_info().

File

./icon.module, line 190
icon.module Provides icon integration with menu items.

Code

function icon_permission() {
  return array_merge_recursive(array(
    'administer icons' => array(
      'title' => t('Administer Icons'),
      'description' => t('Grants selected roles full administrative permissions for all aspects of the Icon API. It supersedes all permissions below.'),
      'restrict access' => TRUE,
    ),
    'view icons' => array(
      'title' => t('View Icons'),
      'description' => t('Grants selected roles permission to view all icons in enabled bundles.'),
    ),
  ), module_invoke_all('icon_permission'));
}