21 lines
575 B
Plaintext
Executable File
21 lines
575 B
Plaintext
Executable File
<?php
|
|
|
|
/**
|
|
* @file
|
|
* Module file for reservations.
|
|
*/
|
|
|
|
/* Implements hook_form_FORM_ID_alter() */
|
|
function reservations_form_node_courts_form_alter(&$form, &$form_state, $form_id) {
|
|
$form['#after_build'][] = 'reservations_add_css_in_admin_part';
|
|
}
|
|
function reservations_form_node_courts_edit_form_alter(&$form, &$form_state, $form_id) {
|
|
$form['#after_build'][] = 'reservations_add_css_in_admin_part';
|
|
}
|
|
|
|
function reservations_add_css_in_admin_part($form, &$form_state) {
|
|
$form['#attached']['library'][] = 'reservations/reservation_admin';
|
|
return $form;
|
|
}
|
|
|