You are here

function spaces_views_tables in Spaces 5.2

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 8

Code

function spaces_views_tables() {
  return array(
    'spaces' => array(
      'name' => 'space',
      'filters' => array(
        'type' => array(
          'name' => t('Spaces: node in current space'),
          'operator' => array(
            'all' => t('Apply at all times'),
            'active' => t('Apply only in a space'),
          ),
          'list' => 'spaces_views_handler_operator_spacetype',
          'list-type' => 'select',
          'handler' => 'spaces_handler_filter_type',
        ),
      ),
    ),
  );
}