function views_exposed_form_cache

cis7 views.module views_exposed_form_cache($views_name, $display_name, $form_output = NULL)
cle7 views.module views_exposed_form_cache($views_name, $display_name, $form_output = NULL)
elmsmedia7 views.module views_exposed_form_cache($views_name, $display_name, $form_output = NULL)
icor7 views.module views_exposed_form_cache($views_name, $display_name, $form_output = NULL)
meedjum_blog7 views.module views_exposed_form_cache($views_name, $display_name, $form_output = NULL)
mooc7 views.module views_exposed_form_cache($views_name, $display_name, $form_output = NULL)

Save the Views exposed form for later use.

Parameters

$views_name: String. The views name.

$display_name: String. The current view display name.

$form_output: Array (optional). The form structure. Only needed when inserting the value.

Return value

Array. The form structure, if any. Otherwise, return FALSE.

1 call to views_exposed_form_cache()
views_exposed_form in sites/all/modules/ulmus/views/views.module
Form builder for the exposed widgets form.

File

sites/all/modules/ulmus/views/views.module, line 2081
Primarily Drupal hooks and global API functions to manipulate views.

Code

function views_exposed_form_cache($views_name, $display_name, $form_output = NULL) {
  // When running tests for exposed filters, this cache should
  // be cleared between each test.
  $views_exposed = &drupal_static(__FUNCTION__);

  // Save the form output
  if (!empty($form_output)) {
    $views_exposed[$views_name][$display_name] = $form_output;
    return;
  }

  // Return the form output, if any
  return empty($views_exposed[$views_name][$display_name]) ? FALSE : $views_exposed[$views_name][$display_name];
}
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.