You are here

function partial_date_format_settings_form in Partial Date 7

2 string references to 'partial_date_format_settings_form'
partial_date_menu in ./partial_date.module
Implements hook_menu().
partial_date_type_format_elements in ./partial_date.pages.inc

File

./partial_date.pages.inc, line 193
Page and form callbacks for handling the date format.

Code

function partial_date_format_settings_form($form, $form_state, $type, $settings = array()) {
  $types = partial_date_format_types();
  if (!isset($types[$type])) {
    drupal_access_denied();
  }
  drupal_set_title(t('Edit partial date format %format', array(
    '%format' => $types[$type],
  )), PASS_THROUGH);
  $settings += partial_date_format_settings($type);
  $form['partial_date_format_' . $type] = partial_date_type_format_elements($settings);
  $form['partial_date_format_' . $type]['#tree'] = TRUE;
  return system_settings_form($form);
}