How to set custom page title tag

Public
</> CopyGet raw version
php
  1. /**
  2.  * Override or insert variables into the html template.
  3.  */
  4. function THEMENAME_preprocess_html(&$vars) {
  5. switch ($vars['menu_item']['path']) {
  6. case 'profile-profile/%':
  7. $vars['head_title'] = implode(' | ', array('Hello!', variable_get('site_name')));
  8. break;
  9. }
  10. }