1 date.module | date_form_views_ui_edit_form_alter(&$form, &$form_state, $form_id) |
Implements hook_form_FORM_ID_alter() for views_ui_edit_form().
File
- core/
modules/ date/ date.module, line 860 - Defines date/time field types.
Code
function date_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'][] = backdrop_get_path('module', 'date') . '/css/date-views.css';
}