You are here

function override_node_options_permission in Override Node Options 8

Same name and namespace in other branches
  1. 7 override_node_options.module \override_node_options_permission()

Implements hook_permisson().

File

./override_node_options.module, line 12
Allow users to override the default publishing options for nodes they can edit without giving them the 'administer nodes' permission.

Code

function override_node_options_permission() {
  $permissions = array();

  // Generate override node permissions for all applicable node types.
  foreach (node_permissions_get_configured_types() as $type) {
    $permissions += override_node_options_list_permissions($type);
  }
  return $permissions;
}