function page_manager_search_page

cis7 search.inc page_manager_search_page($type)
cle7 search.inc page_manager_search_page($type)
elmsmedia7 search.inc page_manager_search_page($type)
icor7 search.inc page_manager_search_page($type)
meedjum_blog7 search.inc page_manager_search_page($type)
mooc7 search.inc page_manager_search_page($type)

Entry point for our overridden search page.

1 string reference to 'page_manager_search_page'
page_manager_search_menu_alter in sites/all/modules/ulmus/ctools/page_manager/plugins/tasks/search.inc
Callback defined by page_manager_search_page_manager_tasks().

File

sites/all/modules/ulmus/ctools/page_manager/plugins/tasks/search.inc, line 101
Handle the 'node view' override task.

Code

function page_manager_search_page($type) {
  ctools_include('menu');
  //  menu_set_active_trail(ctools_get_menu_trail('search/' . $type));

  // Get the arguments and construct a keys string out of them.
  $args = func_get_args();

  // We have to remove the $type.
  array_shift($args);

  // And implode() it all back together.
  $keys = $args ? implode('/', $args) : '';

  // Allow other modules to alter the search keys
  drupal_alter(array('search_keys', 'search_' . $type . '_keys'), $keys);

  // Load my task plugin
  $task = page_manager_get_task('search');
  $subtask = page_manager_get_task_subtask($task, $type);

  // Load the node into a context.
  ctools_include('context');
  ctools_include('context-task-handler');
  $contexts = ctools_context_handler_get_task_contexts($task, $subtask, array($keys));

  $output = ctools_context_handler_render($task, $subtask, $contexts, array($keys));
  if ($output !== FALSE) {
    return $output;
  }

  $function = 'search_view';
  foreach (module_implements('page_manager_override') as $module) {
    $call = $module . '_page_manager_override';
    if (($rc = $call('search')) && function_exists($rc)) {
      $function = $rc;
      break;
    }
  }

  // Otherwise, fall back.

  // Put the $type back on the arguments.
  module_load_include('inc', 'search', 'search.pages');
  array_unshift($args, $type);
  return call_user_func_array($function, $args);
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.