function date_views_form_views_ui_edit_form_alter in Date 8
Same name and namespace in other branches
- 7.3 date_views/date_views.module \date_views_form_views_ui_edit_form_alter()
- 7.2 date_views/date_views.module \date_views_form_views_ui_edit_form_alter()
Implements hook_form_FORM_ID_alter() for views_ui_edit_form().
File
- date_views/
date_views.module, line 343
Code
function date_views_form_views_ui_edit_form_alter(&$form, &$form_state, $form_id) {
// This CSS is needed for the configuration form provided by the Date filter
// (date_views_filter_handler_simple), but we have to add it here so that
// it's already on the edit form the first time a Date filter is being added
// to the View. See http://drupal.org/node/1239228#comment-4885288.
$form['#attached']['css'][] = drupal_get_path('module', 'date_views') . '/css/date_views.css';
}