Skip to main content
3 of 5
Fix format after edit
eric.chenchao
  • 748
  • 1
  • 7
  • 7

Can use set_title() for Drupal 7

function mymodule_preprocess_views_view(&$variables) {
  $view = $variables['view'];
  if ($view->name == 'machine_name' && $view->current_display == 'display_machine_name') {
    $view->set_title('New Display Title'); //added end quote
  }
}
eric.chenchao
  • 748
  • 1
  • 7
  • 7