You are here

function _bear_setup_role_editor in Bear 8

Setup the editor role.

1 call to _bear_setup_role_editor()
_bear_setup_users_and_roles in ./bear.install
Setup default users and roles.

File

./bear.install, line 64
Install, update and uninstall functions for the bear installation profile.

Code

function _bear_setup_role_editor() {
  user_role_grant_permissions('editor', array(
    'access administration pages',
    'access coffee',
    'access content overview',
    'access in-place editing',
    'access toolbar',
    'administer menu',
    'administer nodes',
    'administer url aliases',
    'administer users',
    'bypass node access',
    'change own username',
    'create url aliases',
    'delete all revisions',
    'edit field help text',
    'revert all revisions',
    'use text format basic_html',
    'use text format full_html',
    'view all revisions',
    'view the administration theme',
  ));
}