Commit 4045feaf authored by JohnAlbin's avatar JohnAlbin
Browse files

Moved settings form to admin/content/page_title.

parent 6d498d64
......@@ -20,7 +20,7 @@ function page_title_help($section) {
$output = t('<p>Adds an extra form element to node creation forms that allows you to specify the page title.</p>
<p>Allows for better global configuration of the page title.</p>');
break;
case 'admin/settings/page_title':
case 'admin/content/page_title':
$output = t("<p>The default page title follows one of two patterns:
<ol><li><em>page title</em> | <em>site name</em></li>
<li><em>site name</em> | <em>site slogan</em></li></ol>
......@@ -42,11 +42,12 @@ function page_title_perm() {
* Implementation of hook_menu().
*/
function page_title_menu($may_cache) {
$items = array();
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/page_title',
'title' => t('Page title'),
'description' => t('Enhanced control over the page title (in the &lt;head&gt; tag).'),
'path' => 'admin/content/page_title',
'title' => t('Page titles'),
'description' => t('Enhanced control over the page titles (in the &lt;head&gt; tag).'),
'callback' => 'drupal_get_form',
'callback arguments' => 'page_title_admin_settings',
'access' => user_access('administer site configuration'),
......@@ -56,6 +57,12 @@ function page_title_menu($may_cache) {
return $items;
}
/**
* Standard Settings page
*
* @return
* array A structured array for use with Forms API.
*/
function page_title_admin_settings() {
$form['page_title'] = array(
'#type' => 'fieldset',
......
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