diff --git a/page_manager/plugins/tasks/term_view.inc b/page_manager/plugins/tasks/term_view.inc index 6933a54..653151a 100644 --- a/page_manager/plugins/tasks/term_view.inc +++ b/page_manager/plugins/tasks/term_view.inc @@ -106,7 +106,7 @@ function page_manager_term_view_menu_alter(&$items, $task) { * to run with it. If no one does, it passes through to Drupal core's * term view, which is term_page_view(). */ -function page_manager_term_view_page($term) { +function page_manager_term_view_page($term, $depth = NULL) { // Assign the term name as the page title, just as the original page // callback did. drupal_set_title($term->name); @@ -119,7 +119,7 @@ function page_manager_term_view_page($term) { // Load the term into a context. ctools_include('context'); ctools_include('context-task-handler'); - $contexts = ctools_context_handler_get_task_contexts($task, '', array($term)); + $contexts = ctools_context_handler_get_task_contexts($task, '', array($term, $depth)); if (empty($contexts)) { return drupal_not_found();