You are here

function alpha_pagination_handler_pagination::option_definition in Views Alpha Pagination 7

Our option default definitions.

Overrides views_handler_area::option_definition

File

views/alpha_pagination_handler_pagination.inc, line 30
Definition of alpha_pagination_handler_pagination.

Class

alpha_pagination_handler_pagination
Views area handler to display an alphabetic pagination representive of the entire result set for this view and not just the limited number being displayed by the view's configuration

Code

function option_definition() {
  $options = parent::option_definition();
  $options['pre_letter_path'] = array(
    'default' => 'by-first-letter',
    'translatable' => FALSE,
  );
  $options['paginate_view_field'] = array(
    'default' => '',
    'translatable' => TRUE,
  );

  // Classes.
  $options['paginate_class'] = array(
    'default' => 'alpha-pagination',
    'translatable' => FALSE,
  );
  $options['paginate_list_class'] = array(
    'default' => 'alpha-pagination-list',
    'translatable' => FALSE,
  );
  $options['paginate_active_class'] = array(
    'default' => 'active',
    'translatable' => FALSE,
  );
  $options['paginate_inactive_class'] = array(
    'default' => 'inactive',
    'translatable' => FALSE,
  );
  $options['paginate_link_class'] = array(
    'default' => '',
    'translatable' => FALSE,
  );

  // All.
  $options['paginate_all_display'] = array(
    'default' => 1,
    'translatable' => FALSE,
  );
  $options['paginate_all_class'] = array(
    'default' => 'all',
    'translatable' => FALSE,
  );
  $options['paginate_all_label'] = array(
    'default' => t('All'),
    'translatable' => TRUE,
  );
  $options['paginate_all_position'] = array(
    'default' => 'after',
    'translatable' => FALSE,
  );
  $options['paginate_toggle_empty'] = array(
    'default' => 1,
    'translatable' => FALSE,
  );

  // Numeric.
  $options['paginate_view_numbers'] = array(
    'default' => 0,
    'translatable' => FALSE,
  );
  $options['paginate_numeric_position'] = array(
    'default' => 'before',
    'translatable' => FALSE,
  );
  $options['paginate_numeric_class'] = array(
    'default' => 'numeric',
    'translatable' => FALSE,
  );
  return $options;
}