You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
436 lines
25 KiB
436 lines
25 KiB
4 years ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
* @file
|
||
|
* Bulk export of views_default objects generated by Bulk export module.
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* Implements hook_views_default_views().
|
||
|
*/
|
||
|
function room_reservations_views_default_views() {
|
||
|
$views = array();
|
||
|
|
||
|
$view = new view();
|
||
|
$view->name = 'room_reservations';
|
||
|
$view->description = '';
|
||
|
$view->tag = 'default';
|
||
|
$view->base_table = 'node';
|
||
|
$view->human_name = 'Room Reservations (default views)';
|
||
|
$view->core = 7;
|
||
|
$view->api_version = '3.0';
|
||
|
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
||
|
|
||
|
/* Display: Master */
|
||
|
$handler = $view->new_display('default', 'Master', 'default');
|
||
|
$handler->display->display_options['title'] = 'Room Reservations';
|
||
|
$handler->display->display_options['use_more_always'] = FALSE;
|
||
|
$handler->display->display_options['access']['type'] = 'perm';
|
||
|
$handler->display->display_options['cache']['type'] = 'none';
|
||
|
$handler->display->display_options['query']['type'] = 'views_query';
|
||
|
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
||
|
$handler->display->display_options['pager']['type'] = 'full';
|
||
|
$handler->display->display_options['style_plugin'] = 'default';
|
||
|
$handler->display->display_options['style_options']['grouping'] = array(
|
||
|
0 => array(
|
||
|
'field' => 'reservations_room_category',
|
||
|
'rendered' => 1,
|
||
|
'rendered_strip' => 0,
|
||
|
),
|
||
|
);
|
||
|
$handler->display->display_options['row_plugin'] = 'fields';
|
||
|
/* Relationship: Entity Reference: Referenced Entity */
|
||
|
$handler->display->display_options['relationships']['reservations_room_category_target_id']['id'] = 'reservations_room_category_target_id';
|
||
|
$handler->display->display_options['relationships']['reservations_room_category_target_id']['table'] = 'field_data_reservations_room_category';
|
||
|
$handler->display->display_options['relationships']['reservations_room_category_target_id']['field'] = 'reservations_room_category_target_id';
|
||
|
$handler->display->display_options['relationships']['reservations_room_category_target_id']['label'] = 'category';
|
||
|
/* Field: Content: Title */
|
||
|
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||
|
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||
|
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||
|
$handler->display->display_options['fields']['title']['label'] = '';
|
||
|
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||
|
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||
|
/* Field: Content: Body */
|
||
|
$handler->display->display_options['fields']['body']['id'] = 'body';
|
||
|
$handler->display->display_options['fields']['body']['table'] = 'field_data_body';
|
||
|
$handler->display->display_options['fields']['body']['field'] = 'body';
|
||
|
$handler->display->display_options['fields']['body']['label'] = '';
|
||
|
$handler->display->display_options['fields']['body']['element_label_colon'] = FALSE;
|
||
|
/* Field: Content: Capacity */
|
||
|
$handler->display->display_options['fields']['reservations_room_capacity']['id'] = 'reservations_room_capacity';
|
||
|
$handler->display->display_options['fields']['reservations_room_capacity']['table'] = 'field_data_reservations_room_capacity';
|
||
|
$handler->display->display_options['fields']['reservations_room_capacity']['field'] = 'reservations_room_capacity';
|
||
|
$handler->display->display_options['fields']['reservations_room_capacity']['element_type'] = 'span';
|
||
|
/* Field: Content: Category */
|
||
|
$handler->display->display_options['fields']['reservations_room_category']['id'] = 'reservations_room_category';
|
||
|
$handler->display->display_options['fields']['reservations_room_category']['table'] = 'field_data_reservations_room_category';
|
||
|
$handler->display->display_options['fields']['reservations_room_category']['field'] = 'reservations_room_category';
|
||
|
$handler->display->display_options['fields']['reservations_room_category']['label'] = '';
|
||
|
$handler->display->display_options['fields']['reservations_room_category']['exclude'] = TRUE;
|
||
|
$handler->display->display_options['fields']['reservations_room_category']['element_label_colon'] = FALSE;
|
||
|
$handler->display->display_options['fields']['reservations_room_category']['settings'] = array(
|
||
|
'link' => 0,
|
||
|
);
|
||
|
/* Sort criterion: Content: Title */
|
||
|
$handler->display->display_options['sorts']['title_1']['id'] = 'title_1';
|
||
|
$handler->display->display_options['sorts']['title_1']['table'] = 'node';
|
||
|
$handler->display->display_options['sorts']['title_1']['field'] = 'title';
|
||
|
$handler->display->display_options['sorts']['title_1']['relationship'] = 'reservations_room_category_target_id';
|
||
|
/* Sort criterion: Content: Title */
|
||
|
$handler->display->display_options['sorts']['title']['id'] = 'title';
|
||
|
$handler->display->display_options['sorts']['title']['table'] = 'node';
|
||
|
$handler->display->display_options['sorts']['title']['field'] = 'title';
|
||
|
/* Filter criterion: Content: Published */
|
||
|
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||
|
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||
|
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||
|
$handler->display->display_options['filters']['status']['value'] = 1;
|
||
|
$handler->display->display_options['filters']['status']['group'] = 1;
|
||
|
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||
|
/* Filter criterion: Content: Type */
|
||
|
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||
|
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||
|
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||
|
$handler->display->display_options['filters']['type']['value'] = array(
|
||
|
'room_reservations_room' => 'room_reservations_room',
|
||
|
);
|
||
|
|
||
|
/* Display: Room Descriptions */
|
||
|
$handler = $view->new_display('page', 'Room Descriptions', 'page_1');
|
||
|
$handler->display->display_options['path'] = 'room_reservations/rooms';
|
||
|
$handler->display->display_options['menu']['type'] = 'tab';
|
||
|
$handler->display->display_options['menu']['title'] = 'Room Descriptions';
|
||
|
$handler->display->display_options['menu']['weight'] = '20';
|
||
|
$handler->display->display_options['menu']['context'] = 0;
|
||
|
$handler->display->display_options['menu']['context_only_inline'] = 0;
|
||
|
|
||
|
/* Display: My Reservations */
|
||
|
$handler = $view->new_display('page', 'My Reservations', 'page_2');
|
||
|
$handler->display->display_options['defaults']['relationships'] = FALSE;
|
||
|
$handler->display->display_options['defaults']['fields'] = FALSE;
|
||
|
/* Field: Content: Nid */
|
||
|
$handler->display->display_options['fields']['nid']['id'] = 'nid';
|
||
|
$handler->display->display_options['fields']['nid']['table'] = 'node';
|
||
|
$handler->display->display_options['fields']['nid']['field'] = 'nid';
|
||
|
$handler->display->display_options['fields']['nid']['label'] = '';
|
||
|
$handler->display->display_options['fields']['nid']['exclude'] = TRUE;
|
||
|
$handler->display->display_options['fields']['nid']['element_label_colon'] = FALSE;
|
||
|
/* Field: Content: Title */
|
||
|
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||
|
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||
|
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||
|
$handler->display->display_options['fields']['title']['label'] = 'Group';
|
||
|
$handler->display->display_options['fields']['title']['alter']['make_link'] = TRUE;
|
||
|
$handler->display->display_options['fields']['title']['alter']['path'] = 'node/[nid]/edit';
|
||
|
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||
|
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||
|
$handler->display->display_options['fields']['title']['element_type'] = 'span';
|
||
|
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||
|
/* Field: Content: Room */
|
||
|
$handler->display->display_options['fields']['reservation_room']['id'] = 'reservation_room';
|
||
|
$handler->display->display_options['fields']['reservation_room']['table'] = 'field_data_reservation_room';
|
||
|
$handler->display->display_options['fields']['reservation_room']['field'] = 'reservation_room';
|
||
|
$handler->display->display_options['fields']['reservation_room']['element_type'] = 'span';
|
||
|
$handler->display->display_options['fields']['reservation_room']['settings'] = array(
|
||
|
'link' => 1,
|
||
|
);
|
||
|
/* Field: Content: Date */
|
||
|
$handler->display->display_options['fields']['reservation_date']['id'] = 'reservation_date';
|
||
|
$handler->display->display_options['fields']['reservation_date']['table'] = 'field_data_reservation_date';
|
||
|
$handler->display->display_options['fields']['reservation_date']['field'] = 'reservation_date';
|
||
|
$handler->display->display_options['fields']['reservation_date']['element_type'] = 'span';
|
||
|
/* Field: Content: Time */
|
||
|
$handler->display->display_options['fields']['reservation_time']['id'] = 'reservation_time';
|
||
|
$handler->display->display_options['fields']['reservation_time']['table'] = 'field_data_reservation_time';
|
||
|
$handler->display->display_options['fields']['reservation_time']['field'] = 'reservation_time';
|
||
|
$handler->display->display_options['fields']['reservation_time']['element_type'] = 'span';
|
||
|
$handler->display->display_options['fields']['reservation_time']['settings'] = array(
|
||
|
'thousand_separator' => '',
|
||
|
'prefix_suffix' => 0,
|
||
|
);
|
||
|
/* Field: Content: Length */
|
||
|
$handler->display->display_options['fields']['reservation_length']['id'] = 'reservation_length';
|
||
|
$handler->display->display_options['fields']['reservation_length']['table'] = 'field_data_reservation_length';
|
||
|
$handler->display->display_options['fields']['reservation_length']['field'] = 'reservation_length';
|
||
|
$handler->display->display_options['fields']['reservation_length']['label'] = 'Booked for';
|
||
|
$handler->display->display_options['fields']['reservation_length']['element_type'] = 'span';
|
||
|
$handler->display->display_options['defaults']['sorts'] = FALSE;
|
||
|
/* Sort criterion: Content: Date (reservation_date) */
|
||
|
$handler->display->display_options['sorts']['reservation_date_value']['id'] = 'reservation_date_value';
|
||
|
$handler->display->display_options['sorts']['reservation_date_value']['table'] = 'field_data_reservation_date';
|
||
|
$handler->display->display_options['sorts']['reservation_date_value']['field'] = 'reservation_date_value';
|
||
|
$handler->display->display_options['defaults']['arguments'] = FALSE;
|
||
|
/* Contextual filter: Content: Author uid */
|
||
|
$handler->display->display_options['arguments']['uid']['id'] = 'uid';
|
||
|
$handler->display->display_options['arguments']['uid']['table'] = 'node';
|
||
|
$handler->display->display_options['arguments']['uid']['field'] = 'uid';
|
||
|
$handler->display->display_options['arguments']['uid']['default_action'] = 'default';
|
||
|
$handler->display->display_options['arguments']['uid']['default_argument_type'] = 'current_user';
|
||
|
$handler->display->display_options['arguments']['uid']['summary']['number_of_records'] = '0';
|
||
|
$handler->display->display_options['arguments']['uid']['summary']['format'] = 'default_summary';
|
||
|
$handler->display->display_options['arguments']['uid']['summary_options']['items_per_page'] = '25';
|
||
|
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||
|
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||
|
/* Filter criterion: Content: Published */
|
||
|
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||
|
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||
|
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||
|
$handler->display->display_options['filters']['status']['value'] = 1;
|
||
|
$handler->display->display_options['filters']['status']['group'] = 1;
|
||
|
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||
|
/* Filter criterion: Content: Type */
|
||
|
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||
|
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||
|
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||
|
$handler->display->display_options['filters']['type']['value'] = array(
|
||
|
'room_reservations_reservation' => 'room_reservations_reservation',
|
||
|
);
|
||
|
/* Filter criterion: Content: Date (reservation_date) */
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['id'] = 'reservation_date_value';
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['table'] = 'field_data_reservation_date';
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['field'] = 'reservation_date_value';
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['operator'] = '>=';
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['form_type'] = 'date_text';
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['default_date'] = 'now';
|
||
|
$handler->display->display_options['path'] = 'room_reservations/list';
|
||
|
$handler->display->display_options['menu']['type'] = 'tab';
|
||
|
$handler->display->display_options['menu']['title'] = 'My Reservations';
|
||
|
$handler->display->display_options['menu']['weight'] = '15';
|
||
|
$handler->display->display_options['menu']['context'] = 0;
|
||
|
$handler->display->display_options['menu']['context_only_inline'] = 0;
|
||
|
|
||
|
$views['room_reservations'] = $view;
|
||
|
|
||
|
/////////////////////////////////////////////
|
||
|
|
||
|
$view = new view();
|
||
|
$view->name = 'manage_reservations';
|
||
|
$view->description = '';
|
||
|
$view->tag = 'default';
|
||
|
$view->base_table = 'node';
|
||
|
$view->human_name = 'Manage Reservations';
|
||
|
$view->core = 7;
|
||
|
$view->api_version = '3.0';
|
||
|
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
|
||
|
|
||
|
/* Display: Master */
|
||
|
$handler = $view->new_display('default', 'Master', 'default');
|
||
|
$handler->display->display_options['title'] = 'Manage Reservations';
|
||
|
$handler->display->display_options['use_more_always'] = FALSE;
|
||
|
$handler->display->display_options['access']['type'] = 'perm';
|
||
|
$handler->display->display_options['access']['perm'] = 'administer room reservations system';
|
||
|
$handler->display->display_options['cache']['type'] = 'none';
|
||
|
$handler->display->display_options['query']['type'] = 'views_query';
|
||
|
$handler->display->display_options['exposed_form']['type'] = 'basic';
|
||
|
$handler->display->display_options['pager']['type'] = 'full';
|
||
|
$handler->display->display_options['pager']['options']['items_per_page'] = '40';
|
||
|
$handler->display->display_options['style_plugin'] = 'table';
|
||
|
$handler->display->display_options['style_options']['columns'] = array(
|
||
|
'title' => 'title',
|
||
|
'title_2' => 'title',
|
||
|
'title_1' => 'title',
|
||
|
'reservation_date' => 'reservation_date',
|
||
|
'reservation_time' => 'reservation_date',
|
||
|
'reservation_length' => 'reservation_date',
|
||
|
'name' => 'title',
|
||
|
'reservation_repeat_type' => 'reservation_repeat_type',
|
||
|
'reservation_repeat_until' => 'reservation_repeat_type',
|
||
|
);
|
||
|
$handler->display->display_options['style_options']['default'] = '-1';
|
||
|
$handler->display->display_options['style_options']['info'] = array(
|
||
|
'title' => array(
|
||
|
'sortable' => 0,
|
||
|
'default_sort_order' => 'asc',
|
||
|
'align' => '',
|
||
|
'separator' => '<br>',
|
||
|
'empty_column' => 0,
|
||
|
),
|
||
|
'title_2' => array(
|
||
|
'sortable' => 0,
|
||
|
'default_sort_order' => 'asc',
|
||
|
'align' => '',
|
||
|
'separator' => '',
|
||
|
'empty_column' => 0,
|
||
|
),
|
||
|
'title_1' => array(
|
||
|
'sortable' => 0,
|
||
|
'default_sort_order' => 'asc',
|
||
|
'align' => '',
|
||
|
'separator' => '',
|
||
|
'empty_column' => 0,
|
||
|
),
|
||
|
'reservation_date' => array(
|
||
|
'sortable' => 1,
|
||
|
'default_sort_order' => 'asc',
|
||
|
'align' => '',
|
||
|
'separator' => '<br>',
|
||
|
'empty_column' => 0,
|
||
|
),
|
||
|
'reservation_time' => array(
|
||
|
'sortable' => 0,
|
||
|
'default_sort_order' => 'asc',
|
||
|
'align' => '',
|
||
|
'separator' => '',
|
||
|
'empty_column' => 0,
|
||
|
),
|
||
|
'reservation_length' => array(
|
||
|
'sortable' => 0,
|
||
|
'default_sort_order' => 'asc',
|
||
|
'align' => '',
|
||
|
'separator' => '',
|
||
|
'empty_column' => 0,
|
||
|
),
|
||
|
'name' => array(
|
||
|
'sortable' => 0,
|
||
|
'default_sort_order' => 'asc',
|
||
|
'align' => '',
|
||
|
'separator' => '',
|
||
|
'empty_column' => 0,
|
||
|
),
|
||
|
'reservation_repeat_type' => array(
|
||
|
'sortable' => 0,
|
||
|
'default_sort_order' => 'asc',
|
||
|
'align' => '',
|
||
|
'separator' => '<br>',
|
||
|
'empty_column' => 0,
|
||
|
),
|
||
|
'reservation_repeat_until' => array(
|
||
|
'sortable' => 0,
|
||
|
'default_sort_order' => 'asc',
|
||
|
'align' => '',
|
||
|
'separator' => '',
|
||
|
'empty_column' => 0,
|
||
|
),
|
||
|
);
|
||
|
/* Relationship: Content: Author */
|
||
|
$handler->display->display_options['relationships']['uid']['id'] = 'uid';
|
||
|
$handler->display->display_options['relationships']['uid']['table'] = 'node';
|
||
|
$handler->display->display_options['relationships']['uid']['field'] = 'uid';
|
||
|
/* Relationship: Entity Reference: Referenced Entity */
|
||
|
$handler->display->display_options['relationships']['reservation_room_target_id']['id'] = 'reservation_room_target_id';
|
||
|
$handler->display->display_options['relationships']['reservation_room_target_id']['table'] = 'field_data_reservation_room';
|
||
|
$handler->display->display_options['relationships']['reservation_room_target_id']['field'] = 'reservation_room_target_id';
|
||
|
$handler->display->display_options['relationships']['reservation_room_target_id']['label'] = 'room';
|
||
|
/* Relationship: Entity Reference: Referencing entity */
|
||
|
$handler->display->display_options['relationships']['reverse_reservations_room_category_node']['id'] = 'reverse_reservations_room_category_node';
|
||
|
$handler->display->display_options['relationships']['reverse_reservations_room_category_node']['table'] = 'node';
|
||
|
$handler->display->display_options['relationships']['reverse_reservations_room_category_node']['field'] = 'reverse_reservations_room_category_node';
|
||
|
$handler->display->display_options['relationships']['reverse_reservations_room_category_node']['relationship'] = 'reservation_room_target_id';
|
||
|
$handler->display->display_options['relationships']['reverse_reservations_room_category_node']['label'] = 'reservations_room_category';
|
||
|
/* Field: Content: Title */
|
||
|
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||
|
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||
|
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||
|
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||
|
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||
|
/* Field: Content: Title */
|
||
|
$handler->display->display_options['fields']['title_2']['id'] = 'title_2';
|
||
|
$handler->display->display_options['fields']['title_2']['table'] = 'node';
|
||
|
$handler->display->display_options['fields']['title_2']['field'] = 'title';
|
||
|
$handler->display->display_options['fields']['title_2']['relationship'] = 'reverse_reservations_room_category_node';
|
||
|
$handler->display->display_options['fields']['title_2']['label'] = 'Room Category';
|
||
|
/* Field: Content: Title */
|
||
|
$handler->display->display_options['fields']['title_1']['id'] = 'title_1';
|
||
|
$handler->display->display_options['fields']['title_1']['table'] = 'node';
|
||
|
$handler->display->display_options['fields']['title_1']['field'] = 'title';
|
||
|
$handler->display->display_options['fields']['title_1']['relationship'] = 'reservation_room_target_id';
|
||
|
$handler->display->display_options['fields']['title_1']['label'] = 'Room';
|
||
|
/* Field: Content: Date */
|
||
|
$handler->display->display_options['fields']['reservation_date']['id'] = 'reservation_date';
|
||
|
$handler->display->display_options['fields']['reservation_date']['table'] = 'field_data_reservation_date';
|
||
|
$handler->display->display_options['fields']['reservation_date']['field'] = 'reservation_date';
|
||
|
$handler->display->display_options['fields']['reservation_date']['label'] = 'Reservation Date';
|
||
|
$handler->display->display_options['fields']['reservation_date']['settings'] = array(
|
||
|
'format_type' => 'date_year',
|
||
|
'fromto' => 'both',
|
||
|
'multiple_number' => '',
|
||
|
'multiple_from' => '',
|
||
|
'multiple_to' => '',
|
||
|
);
|
||
|
/* Field: Content: Time */
|
||
|
$handler->display->display_options['fields']['reservation_time']['id'] = 'reservation_time';
|
||
|
$handler->display->display_options['fields']['reservation_time']['table'] = 'field_data_reservation_time';
|
||
|
$handler->display->display_options['fields']['reservation_time']['field'] = 'reservation_time';
|
||
|
$handler->display->display_options['fields']['reservation_time']['label'] = 'Booking Time';
|
||
|
/* Field: Content: Booking Length */
|
||
|
$handler->display->display_options['fields']['reservation_length']['id'] = 'reservation_length';
|
||
|
$handler->display->display_options['fields']['reservation_length']['table'] = 'field_data_reservation_length';
|
||
|
$handler->display->display_options['fields']['reservation_length']['field'] = 'reservation_length';
|
||
|
/* Field: User: Name */
|
||
|
$handler->display->display_options['fields']['name']['id'] = 'name';
|
||
|
$handler->display->display_options['fields']['name']['table'] = 'users';
|
||
|
$handler->display->display_options['fields']['name']['field'] = 'name';
|
||
|
$handler->display->display_options['fields']['name']['relationship'] = 'uid';
|
||
|
$handler->display->display_options['fields']['name']['label'] = 'Booked by';
|
||
|
/* Field: Content: Repeat Type */
|
||
|
$handler->display->display_options['fields']['reservation_repeat_type']['id'] = 'reservation_repeat_type';
|
||
|
$handler->display->display_options['fields']['reservation_repeat_type']['table'] = 'field_data_reservation_repeat_type';
|
||
|
$handler->display->display_options['fields']['reservation_repeat_type']['field'] = 'reservation_repeat_type';
|
||
|
/* Field: Content: Repeat reservation until */
|
||
|
$handler->display->display_options['fields']['reservation_repeat_until']['id'] = 'reservation_repeat_until';
|
||
|
$handler->display->display_options['fields']['reservation_repeat_until']['table'] = 'field_data_reservation_repeat_until';
|
||
|
$handler->display->display_options['fields']['reservation_repeat_until']['field'] = 'reservation_repeat_until';
|
||
|
$handler->display->display_options['fields']['reservation_repeat_until']['settings'] = array(
|
||
|
'format_type' => 'date_year',
|
||
|
'fromto' => 'both',
|
||
|
'multiple_number' => '',
|
||
|
'multiple_from' => '',
|
||
|
'multiple_to' => '',
|
||
|
);
|
||
|
/* Sort criterion: Content: Post date */
|
||
|
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
||
|
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
||
|
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
||
|
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
||
|
/* Filter criterion: Content: Published */
|
||
|
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||
|
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||
|
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||
|
$handler->display->display_options['filters']['status']['value'] = 1;
|
||
|
$handler->display->display_options['filters']['status']['group'] = 1;
|
||
|
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||
|
/* Filter criterion: Content: Type */
|
||
|
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||
|
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||
|
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||
|
$handler->display->display_options['filters']['type']['value'] = array(
|
||
|
'room_reservations_reservation' => 'room_reservations_reservation',
|
||
|
);
|
||
|
/* Filter criterion: Content: Date (reservation_date) */
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['id'] = 'reservation_date_value';
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['table'] = 'field_data_reservation_date';
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['field'] = 'reservation_date_value';
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['exposed'] = TRUE;
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['expose']['operator_id'] = 'reservation_date_value_op';
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['expose']['label'] = 'Reservation Date';
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['expose']['operator'] = 'reservation_date_value_op';
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['expose']['identifier'] = 'reservation_date_value';
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['expose']['remember_roles'] = array(
|
||
|
2 => '2',
|
||
|
1 => 0,
|
||
|
3 => 0,
|
||
|
4 => 0,
|
||
|
5 => 0,
|
||
|
6 => 0,
|
||
|
8 => 0,
|
||
|
9 => 0,
|
||
|
10 => 0,
|
||
|
11 => 0,
|
||
|
);
|
||
|
$handler->display->display_options['filters']['reservation_date_value']['form_type'] = 'date_popup';
|
||
|
|
||
|
/* Display: Page */
|
||
|
$handler = $view->new_display('page', 'Page', 'page');
|
||
|
$handler->display->display_options['path'] = 'admin/content/manage-reservations';
|
||
|
$handler->display->display_options['menu']['type'] = 'tab';
|
||
|
$handler->display->display_options['menu']['title'] = 'Manage Reservations';
|
||
|
$handler->display->display_options['menu']['weight'] = '0';
|
||
|
$handler->display->display_options['menu']['context'] = 0;
|
||
|
$handler->display->display_options['menu']['context_only_inline'] = 0;
|
||
|
|
||
|
$views['manage_reservations'] = $view;
|
||
|
|
||
|
return $views;
|
||
|
}
|