Commit a865f3a6 authored by webchick's avatar webchick

Issue #2102489 by webwarrior, InternetDevels: Remove drupal_set_title in views...

Issue #2102489 by webwarrior, InternetDevels: Remove drupal_set_title in views module controllers (last instance of drupal_set_title()).
parent 44b13073
......@@ -65,7 +65,7 @@ function views_ajax_form_wrapper($form_id, &$form_state) {
return $response;
}
return $output;
return (!empty($form_state['title'])) ? array('#title' => $form_state['title'], '#markup' => $output) : $output;
}
/**
......
......@@ -372,11 +372,6 @@ public function getStandardButtons(&$form, &$form_state, $form_id, $name = NULL)
}
// Finally, we never want these cached -- our object cache does that for us.
$form['#no_cache'] = TRUE;
// If this isn't an ajaxy form, then we want to set the title.
if (!empty($form['#title'])) {
drupal_set_title($form['#title']);
}
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment