You are here

function example_perm in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_upgrade/tests/old/samples/example.module \example_perm()

Implement hook_perm.

Use case 1: returns array directly.

http://drupal.org/node/224333#hook_permission http://drupal.org/node/224333#descriptions_permissions

File

coder_upgrade/tests/old/samples/example.module, line 288

Code

function example_perm() {
  return array(
    'administer my module',
    $perm_1['one'],
    'permission two',
    $perm_2[1]['2'],
  );
}