1 simpletest_example.module simpletest_example_permission()

Implements hook_permission().

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

Related topics

File

modules/examples/simpletest_example/simpletest_example.module, line 26
Hook implementations for the SimpleTest Example module.

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;
}