You are here

function node_update_7008 in Drupal 7

Split the 'administer nodes' permission from 'access content overview'.

Related topics

File

modules/node/node.install, line 799
Install, update and uninstall functions for the node module.

Code

function node_update_7008() {
  $roles = user_roles(FALSE, 'administer nodes');
  foreach ($roles as $rid => $role) {
    _update_7000_user_role_grant_permissions($rid, array(
      'access content overview',
    ), 'node');
  }
}