Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
drupal.org
page_title
Commits
7a5b865e
Commit
7a5b865e
authored
May 05, 2008
by
Nicholas Thompson
Browse files
Added an implementation of hook_preprocess_page
parent
679d592c
Changes
1
Hide whitespace changes
Inline
Side-by-side
page_title.module
View file @
7a5b865e
...
...
@@ -91,6 +91,10 @@ function page_title_theme() {
'template'
=>
'page_title-admin-settings-form'
,
'arguments'
=>
array
(
'form'
=>
NULL
),
),
'page_title_preprocess_page'
=>
array
(
'arguments'
=>
array
(
'vars'
=>
NULL
),
),
);
}
...
...
@@ -354,3 +358,11 @@ function page_title_token_list($type = 'all') {
return
$tokens
;
}
/**
* Implementation of hook_preprocess_page
*/
function
page_title_preprocess_page
(
&
$vars
)
{
$vars
[
'head_title'
]
=
page_title_page_get_title
();
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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