You are here

function simpletest_example_permission in Examples for Developers 7

Implements hook_permission().

In this case we're adding an addition permission that does the same as the one the node module offers, just to demonstrate this error.

Related topics

File

simpletest_example/simpletest_example.module, line 38
Module file for simpletest_example

Code

function simpletest_example_permission() {
  $perms = array();
  $perms['extra special edit any simpletest_example'] = array(
    'title' => t('Extra special edit any SimpleTest Example'),
    'description' => t('Extra special edit any SimpleTest Example'),
  );
  return $perms;
}