Thursday, June 11, 2020

How to chage the page title in drupal 7

/**
 * Implements hook_page_alter().
 */
function MODULENAME_page_alter(&$page) {

 if(arg(0) == 'checkout') {
    $test = $page;Booking
    drupal_set_title('New title');
  }
}

No comments:

Post a Comment

If you have any problem please let me know.