You are here

function opening_hours_admin_blocked_day_add_form in Opening hours 7

Same name and namespace in other branches
  1. 6 includes/opening_hours.admin.inc \opening_hours_admin_blocked_day_add_form()

Add blocked day form.

1 string reference to 'opening_hours_admin_blocked_day_add_form'
opening_hours_menu in ./opening_hours.module
Implements hook_menu().

File

includes/opening_hours.admin.inc, line 58
Administration page for opening hours.

Code

function opening_hours_admin_blocked_day_add_form($form, $form_state) {
  $form['date'] = array(
    '#type' => 'date_popup',
    '#title' => t('Date'),
    '#date_format' => 'Y-m-d',
    '#date_year_range' => '-0:+10',
  );
  $form['buttons']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Save blocked day'),
  );
  return $form;
}