| [ Index ] |
PHP Cross Reference of Drupal 6 (yi-drupal) |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 510 lines (16 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| calendar_views_default_views() X-Ref |
| Set up so it can be used as an API to create default calendars for specific date fields. Use variable_set() to establish criteria for default calendars. Set the variable in custom modules or in settings. Example: Add a new default calendar to custom calendars that are already configured: $options = variable_get('calendar_default_view_options', array()); $option = array( 'name' => 'example_event', 'description' => 'An example event calendar for the date field.', 'path' => 'example_event', 'types' => array('example_content_type'), 'date_fields' => array('field_example_date'), ); $options[] = $option; variable_set('calendar_default_view_options', $options); |
| calendar_views_construct($options = NULL) X-Ref |
| Construct a default calendar to match specified options. Views calls it without options, so the basic default view will use the default values. param: $options: an optional array of options to param: string $name: param: string $description: param: string $path: param: array $types: param: array $date_fields: param: array $display_fields: return: the default calendar array. |
| Generated: Mon Jul 9 18:01:44 2012 | Cross-referenced by PHPXref 0.7 |