Commit f3e10748 authored by JohnAlbin's avatar JohnAlbin
Browse files

Added new "administer page titles" privilege.

parent 4045feaf
......@@ -15,9 +15,11 @@ DESCRIPTION:
********************************************************************
PERMISSIONS:
This module defines the "set page title" permission. This permission
determines whether a user will be able to edit the "Page title" field on node
edit forms (if visible.)
This module defines the "set page title" and "administer page titles"
permissions. The "set page title" permission determines whether a user will
be able to edit the "Page title" field on node edit forms (if visible.) The
"administer page titles" permission determines whether a user will be able to
edit the "Page title" administration pages.
********************************************************************
INSTALLATION:
......
......@@ -35,7 +35,7 @@ function page_title_help($section) {
* Implementation of hook_perm().
*/
function page_title_perm() {
return array('set page title');
return array('set page title', 'administer page titles');
}
/**
......@@ -49,8 +49,8 @@ function page_title_menu($may_cache) {
'title' => t('Page titles'),
'description' => t('Enhanced control over the page titles (in the <head> tag).'),
'callback' => 'drupal_get_form',
'callback arguments' => 'page_title_admin_settings',
'access' => user_access('administer site configuration'),
'callback arguments' => array('page_title_admin_settings'),
'access' => user_access('administer page titles'),
'type' => MENU_NORMAL_ITEM,
);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment