Skip to main content
deleted 19 characters in body
Source Link
avpaderno
  • 97.9k
  • 15
  • 164
  • 284

CanYou can use set_title$view->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
  }
}

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
  }
}

You can use $view->set_title().

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');
  }
}
Post Merged (destination) from drupal.stackexchange.com/questions/33189/…
added 2 characters in body
Source Link
Adrian Cid Almaguer
  • 18.5k
  • 14
  • 79
  • 133

Can use set_title()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
  }
}

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
  }
}

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
  }
}
Fix format after edit
Source Link
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 } }

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
  }
}

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 } }

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
  }
}
Source Link
eric.chenchao
  • 748
  • 1
  • 7
  • 7
Loading