You are here

function customfilter_permission in Custom filter 7

Same name and namespace in other branches
  1. 7.2 customfilter.module \customfilter_permission()

Implements hook_permission().

This function tell to drupal what permissions your module have

Return value

array Return an array of permissions

File

./customfilter.module, line 319
Allows the users with the right permission to define custom filters.

Code

function customfilter_permission() {
  $perm = array(
    'administer customfilter' => array(
      'title' => t('administer customfilter'),
      'description' => t('Administer the module customfilter, which allows the
         creation of custom filters'),
      'restrict access' => TRUE,
    ),
  );
  return $perm;
}