function _spaces_calendar_views_calendar_feeds in Spaces 5
Same name and namespace in other branches
- 5.2 spaces_calendar/spaces_calendar.module \_spaces_calendar_views_calendar_feeds()
1 string reference to '_spaces_calendar_views_calendar_feeds'
- spaces_calendar_views_default_views in spaces_calendar/
spaces_calendar.module - Implementation of hook_default_views
File
- spaces_calendar/
spaces_calendar.module, line 428
Code
function _spaces_calendar_views_calendar_feeds() {
$view = new stdClass();
$view->name = 'spaces_calendar_feeds';
$view->description = 'Displays ical feeds and allows users to administer them';
$view->access = array();
$view->view_args_php = '';
$view->page = TRUE;
$view->page_title = 'Calendar feeds';
$view->page_type = 'table';
$view->url = 'calendar/feeds';
$view->use_pager = TRUE;
$view->nodes_per_page = '20';
$view->menu = TRUE;
$view->menu_title = 'Calendar feeds';
$view->menu_tab = FALSE;
$view->menu_tab_weight = '0';
$view->menu_tab_default = FALSE;
$view->menu_tab_default_parent = NULL;
$view->menu_tab_default_parent_type = 'tab';
$view->menu_parent_tab_weight = '0';
$view->menu_parent_title = '';
$view->sort = array(
array(
'tablename' => 'node',
'field' => 'title',
'sortorder' => 'ASC',
'options' => '',
),
);
$view->argument = array();
$view->field = array(
array(
'tablename' => 'node',
'field' => 'title',
'label' => 'Feed',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array(
'tablename' => 'node',
'field' => 'created',
'label' => 'Created On',
'handler' => 'views_handler_field_date_custom',
'options' => 'M j, Y',
),
array(
'tablename' => 'node',
'field' => 'edit',
'label' => '',
'handler' => 'views_handler_node_edit_destination',
),
);
$view->filter = array(
array(
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array(
0 => 'feed_ical',
),
),
array(
'tablename' => 'og_ancestry',
'field' => 'picg',
'operator' => '=',
'options' => '',
'value' => '***CURRENT_GID***',
),
array(
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
);
$view->exposed_filter = array();
$view->requires = array(
node,
og_ancestry,
);
return $view;
}