function advanced_help_search_view

cis7 advanced_help.module advanced_help_search_view()
cle7 advanced_help.module advanced_help_search_view()
elmsmedia7 advanced_help.module advanced_help_search_view()
icor7 advanced_help.module advanced_help_search_view()
meedjum_blog7 advanced_help.module advanced_help_search_view()
mooc7 advanced_help.module advanced_help_search_view()

Page callback for advanced help search.

1 string reference to 'advanced_help_search_view'
advanced_help_menu in sites/all/modules/ulmus/advanced_help/advanced_help.module
Implements hook_menu().

File

sites/all/modules/ulmus/advanced_help/advanced_help.module, line 127
Pluggable system to provide advanced help facilities for Drupal and modules.

Code

function advanced_help_search_view() {
  if (!module_exists('search')) {
    return drupal_not_found();
  }

  $breadcrumb[] = advanced_help_l(t('Help'), 'admin/advanced_help');

  if (!isset($_POST['form_id'])) {
    $keys = search_get_keys();
    // Only perform search if there is non-whitespace search term:
    $results = '';
    if (trim($keys)) {
      // Collect the search results:
      $results = array(
        '#type' => 'markup',
        '#markup' => search_data($keys, 'advanced_help'),
      );
    }

    // Construct the search form.
    $output['advanced_help_search_form'] = drupal_get_form('advanced_help_search_form', $keys);
    $output['results'] = $results;

  }
  else {
    $output = drupal_get_form('advanced_help_search_form', empty($keys) ? '' : $keys);
  }

  $popup = !empty($_GET['popup']) && user_access('view advanced help popup');
  if ($popup) {
    $GLOBALS['devel_shutdown'] = FALSE; // Prevent devel module from spewing.
    module_invoke('admin_menu', 'suppress'); // Suppress admin_menu.
    drupal_set_breadcrumb(array_reverse($breadcrumb));
    print theme('advanced_help_popup', array('content' => $output));
    return;
  }

  $breadcrumb = array_merge(drupal_get_breadcrumb(), array_reverse($breadcrumb));
  drupal_set_breadcrumb($breadcrumb);
  return $output;
}
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.