function merci_restrictions_sitewide_settings in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3
Form builder for the site work calendar settings.
1 string reference to 'merci_restrictions_sitewide_settings'
- merci_restrictions_menu in merci_restrictions/
merci_restrictions.module - Implements hook_menu().
File
- merci_restrictions/
merci_restrictions.admin.inc, line 11 - Work calendar admin settings UI.
Code
function merci_restrictions_sitewide_settings() {
if (empty($options)) {
$form['message'] = array(
'#markup' => t("There is no merci calendar created yet. Create one at <a href='!url'>admin/config/merci/merci-hours</a>.", array(
'!url' => url('admin/structure/merci-hours'),
)),
);
}
$form['merci_hours_default'] = array(
'#type' => 'select',
'#title' => t('Default merci calendar'),
'#empty_value' => '',
'#default_value' => variable_get('merci_hours_default', ''),
'#options' => $options,
'#disabled' => empty($options),
);
return system_settings_form($form);
}