You are here

function csm_perm in Custom Submit Messages 6

Implements hook_perm().

File

./csm.module, line 111
The main module file for Custom Submit Messages.

Code

function csm_perm() {

  // for each node type, add an option to change submit messages for that node type and change node
  // creation page title for that node type
  $node_types = node_get_types();
  foreach ($node_types as $key => $value) {
    $perm[] = 'change ' . $key . ' submit messages';
    $perm[] = 'change ' . $key . ' creation page title';
  }
  return $perm;
}