function _spaces_calendar_views_calendar_ical_items in Spaces 5
Same name and namespace in other branches
- 5.2 spaces_calendar/spaces_calendar.module \_spaces_calendar_views_calendar_ical_items()
1 string reference to '_spaces_calendar_views_calendar_ical_items'
- spaces_calendar_views_default_views in spaces_calendar/
spaces_calendar.module - Implementation of hook_default_views
File
- spaces_calendar/
spaces_calendar.module, line 511
Code
function _spaces_calendar_views_calendar_ical_items() {
$view = new stdClass();
$view->name = 'spaces_calendar_ical_items';
$view->description = 'Listing of ical items for the node view of feeds.';
$view->access = array();
$view->view_args_php = '';
$view->page = TRUE;
$view->page_type = 'table';
$view->url = '';
$view->use_pager = TRUE;
$view->nodes_per_page = '10';
$view->sort = array(
array(
'tablename' => 'node_data_' . variable_get('spaces_calendar_datefield', ''),
'field' => variable_get('spaces_calendar_datefield', '') . '_value',
'sortorder' => 'DESC',
'options' => '',
),
);
$view->argument = array(
array(
'type' => 'feed_nid',
'argdefault' => '1',
'title' => '',
'options' => '',
'wildcard' => '',
'wildcard_substitution' => '',
),
);
$view->field = array(
array(
'tablename' => 'node',
'field' => 'title',
'label' => 'Title',
'handler' => 'views_handler_field_nodelink',
'options' => 'link',
),
array(
'tablename' => 'node_data_' . variable_get('spaces_calendar_datefield', ''),
'field' => variable_get('spaces_calendar_datefield', '') . '_value',
'label' => 'Date',
'handler' => 'content_views_field_handler_group',
'options' => 'default',
),
);
$view->filter = array(
array(
'tablename' => 'node',
'field' => 'status',
'operator' => '=',
'options' => '',
'value' => '1',
),
array(
'tablename' => 'node',
'field' => 'type',
'operator' => 'OR',
'options' => '',
'value' => array(
0 => variable_get('spaces_calendar_feed_itemtype', ''),
),
),
);
$view->exposed_filter = array();
$view->requires = array(
'node_data_' . variable_get('spaces_calendar_datefield', ''),
'node',
);
return $view;
}