32 lines
915 B
Plaintext
Executable File
32 lines
915 B
Plaintext
Executable File
<?php
|
|
|
|
/**
|
|
* @file
|
|
* Module file for reservations.
|
|
*/
|
|
//function reservations_theme() {
|
|
// return array(
|
|
// 'reservations' => array(
|
|
// 'template' => 'reservations.reservation_add',
|
|
// 'variables' => array('title' => NULL),
|
|
// ),
|
|
// );
|
|
//}
|
|
|
|
/* 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) {
|
|
// $style_path = drupal_get_path('module','reservations') . '/css/reservations.css';
|
|
// dpm($form);
|
|
// drupal_add_css('file', $style_path);
|
|
$form['#attached']['library'][] = 'reservations/reservation_admin';
|
|
return $form;
|
|
}
|
|
|