Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
drupal.org
page_title
Commits
f3e10748
Commit
f3e10748
authored
Aug 02, 2007
by
JohnAlbin
Browse files
Added new "administer page titles" privilege.
parent
4045feaf
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
README.txt
README.txt
+5
-3
page_title.module
page_title.module
+3
-3
No files found.
README.txt
View file @
f3e10748
...
...
@@ -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:
...
...
page_title.module
View file @
f3e10748
...
...
@@ -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
,
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment