node_permission

Versions
mediamosa-21
node_permission()

Implements hook_permission().

Code

modules/node/node.module, line 1408

<?php
function node_permission() {
  $perms = array(
    'administer content types' => array(
      'title' => t('Administer content types'),
      'description' => drupal_placeholder(array('text' => t('Warning: Give to trusted roles only; this permission has security implications.'))),
    ),
    'administer nodes' => array(
      'title' => t('Administer content'),
      'description' => drupal_placeholder(array('text' => t('Warning: Give to trusted roles only; this permission has security implications.'))),
    ),
    'access content' => array(
      'title' => t('View published content'),
    ),
    'access content overview' => array(
      'title' => t('Access the content overview page'),
    ),
    'bypass node access' => array(
      'title' => t('Bypass content access control'),
      'description' => t('View, edit and delete all content regardless of permission restrictions. %warning', array('%warning' => t('Warning: Give to trusted roles only; this permission has security implications.'))),
    ),
    'view revisions' => array(
      'title' => t('View content revisions'),
    ),
    'revert revisions' => array(
      'title' => t('Revert content revisions'),
    ),
    'delete revisions' => array(
      'title' => t('Delete content revisions'),
    ),
    'view own unpublished content' => array(
      'title' => t('View own unpublished content'),
    ),
  );

  // Generate standard node permissions for all applicable node types.
  foreach (node_permissions_get_configured_types() as $type) {
    $perms += node_list_permissions($type);
  }

  return $perms;
}
?>