Issue #1369082 by jhedstrom: Do not let unitialized $version cause plugin api to...
authorEarl Miles
Sat, 21 Jan 2012 01:26:10 +0000 (17:26 -0800)
committerEarl Miles
Sat, 21 Jan 2012 01:26:10 +0000 (17:26 -0800)
includes/plugins.inc
page_manager/plugins/tasks/term_view.inc

index dec66a0..f41c12c 100644 (file)
@@ -64,6 +64,7 @@ function ctools_plugin_api_info($owner, $api, $minimum_version, $current_version
     foreach (module_implements($hook) as $module) {
       $function = $module . '_' . $hook;
       $info = $function($owner, $api);
+      $version = NULL;
       // This is added to make hook_views_api() compatible with this, since
       // views used a different version key.
       if (isset($info['version'])) {
index fc8944a..6933a54 100644 (file)
@@ -107,6 +107,10 @@ function page_manager_term_view_menu_alter(&$items, $task) {
  * term view, which is term_page_view().
  */
 function page_manager_term_view_page($term) {
+  // Assign the term name as the page title, just as the original page
+  // callback did.
+  drupal_set_title($term->name);
+
   // While we ordinarily should never actually get feeds through here,
   // just in case
   // Load my task plugin