You are here

function csm_permission in Custom Submit Messages 7

Implements hook_permission().

File

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

Code

function csm_permission() {

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