/[drupal]/contributions/modules/publicbookings/publicbookings.views_default.inc
ViewVC logotype

Diff of /contributions/modules/publicbookings/publicbookings.views_default.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.3, Mon Aug 18 10:11:49 2008 UTC revision 1.4, Wed Oct 1 02:44:18 2008 UTC
# Line 10  Line 10 
10   *   *
11   */   */
12  function publicbookings_views_default_views() {  function publicbookings_views_default_views() {
13    return;    $view = publicbookings_view_schedules();
14      $views[$view->name] = $view;
15    
16      $view = publicbookings_view_schedules_admin();
17      $views[$view->name] = $view;
18    
19      $view = publicbookings_view_currently_happening();
20      $views[$view->name] = $view;
21    
22      $view = publicbookings_view_current();
23      $views[$view->name] = $view;
24    
25      $view = publicbookings_view_availability_admin();
26      $views[$view->name] = $view;
27    
28      $view = publicbookings_view_resources_admin();
29      $views[$view->name] = $view;
30    
31      $view = publicbookings_view_upcoming();
32      $views[$view->name] = $view;
33    
34      return $views;
35  }  }
36    
37  function publicbookings_default_view_object() {  function publicbookings_default_view_object() {
# Line 26  function publicbookings_default_view_obj Line 47  function publicbookings_default_view_obj
47  }  }
48    
49  function publicbookings_view_schedules() {  function publicbookings_view_schedules() {
50    
51    $view = publicbookings_default_view_object();    $view = publicbookings_default_view_object();
52    $view->name = 'publicbookings_view_schedules';    $view->name = 'publicbookings_view_schedules';
53    $view->base_table = 'bookings_schedules';    $view->base_table = 'bookings_schedules';
54    
55      $view->fields = array(
56        array(
57          'tablename' => 'bookings_record',
58          'field' => 'name',
59          'handler' => 'views_handler_filter_string',
60          'label' => 'Name',
61    
62        ),
63        array(
64          'tablename' => 'bookings_record',
65          'field' => 'start',
66          'handler' => 'views_handler_field_date',
67          'label' => 'Start',
68    
69        ),
70        array(
71          'tablename' => 'bookings_record',
72          'field' => 'end',
73          'handler' => 'views_handler_field_date',
74          'label' => 'End',
75    
76        ),
77        array(
78          'tablename' => 'bookings_record',
79          'field' => 'type',
80          'handler' => 'views_handler_filter_string',
81          'label' => 'Type',
82    
83        ),
84      );
85    
86    $handler = $view->new_display('default', 'Defaults', 'default');    $handler = $view->new_display('default', 'Defaults', 'default');
87    $handler->override_option('items_per_page', 10);    $handler->override_option('items_per_page', 10);
88    $handler->override_option('fields', array(    $handler->override_option('fields', array(
# Line 169  function publicbookings_view_schedules_a Line 223  function publicbookings_view_schedules_a
223    $view->name = 'publicbookings_view_schedules';    $view->name = 'publicbookings_view_schedules';
224    $view->base_table = 'bookings_schedules';    $view->base_table = 'bookings_schedules';
225    $handler = $view->new_display('default', 'Defaults', 'default');    $handler = $view->new_display('default', 'Defaults', 'default');
226    $handler->override_option('items_per_page', 10);    $handler->override_option('use_pager', TRUE);
227      $handler->override_option('items_per_page', '10');
228    $handler->override_option('fields', array(    $handler->override_option('fields', array(
229      'name' => array(      'name' => array(
230        'label' => 'Name',        'label' => 'Name',
# Line 468  function publicbookings_view_availabilit Line 523  function publicbookings_view_availabilit
523        'field' => 'end',        'field' => 'end',
524        'relationship' => 'none',        'relationship' => 'none',
525      ),      ),
526      'ical_rrule' => array(      'rrule' => array(
527        'label' => 'Repeat',        'label' => 'Repeat',
528        'exclude' => 0,        'exclude' => 0,
529        'id' => 'ical_rrule',        'id' => 'rrule',
530        'table' => 'bookings_records',        'table' => 'bookings_records',
531        'field' => 'ical_rrule',        'field' => 'rrule',
532        'relationship' => 'none',        'relationship' => 'none',
533      ),      ),
534      'edit_availability' => array(      'edit_availability' => array(

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.2