You are here

function spaces_views_handler_operator_spacetype in Spaces 5.2

Views filter options handler that provides the options array for the filter view value dropdown.

1 string reference to 'spaces_views_handler_operator_spacetype'
spaces_views_tables in ./spaces_views.inc
Implementation of hook_views_tables(). Adds a meta-filter that provides a layer of abstraction that delegates actual filtering to the implementing space type modules.

File

./spaces_views.inc, line 32

Code

function spaces_views_handler_operator_spacetype() {
  $options = array(
    'all' => t('Applies to any space'),
  );
  foreach (spaces_types() as $type => $info) {
    $options[$type] = t('Applies only in a !spacetype', array(
      '!spacetype' => strtolower($info['title']),
    ));
  }
  return $options;
}