Page title unable to overwrite default title admin/config/search/page-title - Global default title is abc

admin/config/search/page-title - Content type BOOK -> title is def

meta tag -> Content -> page title is ghi

meta tag -> Content -> BOOK -> page title is jkl

content type BOOK -> create new node -> page title -> mno

In the website(Content type Book), the title always shows abc.

I want to edit title, may I know how?

Many Thanks.
function mytheme_preprocess_page(&amp;$variables) {

  if (!empty($variables['page']['content']['system_main']['#form_id']) &amp;&amp; $variables['page']['content']['system_main']['#form_id'] == 'form_id') {
    if (arg(0) == 'node' &amp;&amp; arg(2) == 'node-type') {
    drupal_set_title(t('Your title'));
    }
   }
 }


you can use dpm($variables) to find form id. This for changing page title.

For changing header title i.e the title displaying in tab, below code can be used

function mytheme_preprocess_html(&amp;$vars) {
  if (!empty($vars['page']['content']['system_main']['#form_id']) &amp;&amp; $vars['page']['content']['system_main']['#form_id'] == 'your_form_id') {
    $vars['head_title'] = t('title');
  }
}