function views_plugin_pager_full::exposed_form_alter

cis7 views_plugin_pager_full.inc views_plugin_pager_full::exposed_form_alter(&$form, &$form_state)
cle7 views_plugin_pager_full.inc views_plugin_pager_full::exposed_form_alter(&$form, &$form_state)
elmsmedia7 views_plugin_pager_full.inc views_plugin_pager_full::exposed_form_alter(&$form, &$form_state)
icor7 views_plugin_pager_full.inc views_plugin_pager_full::exposed_form_alter(&$form, &$form_state)
meedjum_blog7 views_plugin_pager_full.inc views_plugin_pager_full::exposed_form_alter(&$form, &$form_state)
mooc7 views_plugin_pager_full.inc views_plugin_pager_full::exposed_form_alter(&$form, &$form_state)

File

sites/all/modules/ulmus/views/plugins/views_plugin_pager_full.inc, line 384
Definition of views_plugin_pager_full.

Class

views_plugin_pager_full
The plugin to handle full pager.

Code

function exposed_form_alter(&$form, &$form_state) {
  if ($this->items_per_page_exposed()) {
    $options = explode(',', $this->options['expose']['items_per_page_options']);
    $sanitized_options = array();
    if (is_array($options)) {
      foreach ($options as $option) {
        $sanitized_options[intval($option)] = intval($option);
      }
      if (!empty($this->options['expose']['items_per_page_options_all']) && !empty($this->options['expose']['items_per_page_options_all_label'])) {
        $sanitized_options['All'] = $this->options['expose']['items_per_page_options_all_label'];
      }
      $form['items_per_page'] = array(
        '#type' => 'select',
        '#title' => $this->options['expose']['items_per_page_label'],
        '#options' => $sanitized_options,
        '#default_value' => $this->get_items_per_page(),
      );
    }
  }

  if ($this->offset_exposed()) {
    $form['offset'] = array(
      '#type' => 'textfield',
      '#size' => 10,
      '#maxlength' => 10,
      '#title' => $this->options['expose']['offset_label'],
      '#default_value' => $this->get_offset(),
    );
  }
}
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.