You are here

field_defaults.admin.inc in Field Defaults 7.2

field_defaults.admin.inc Field Defaults administration pages.

File

field_defaults.admin.inc
View source
<?php

/**
 * @file field_defaults.admin.inc
 * Field Defaults administration pages.
 */

/**
 * Admin settings form for field defaults.
 *
 * @param $form
 * @param $form_state
 */
function field_defaults_admin_settings_form($form, &$form_state) {
  $form = array();
  $form['field_defaults_retain_updated'] = array(
    '#title' => t('Do not update changed time'),
    '#type' => 'checkbox',
    '#default_value' => variable_get('field_defaults_retain_updated', 1),
    '#description' => t('This will retain the original changed date on any entity that supports it.'),
  );
  return system_settings_form($form);
}

Functions

Namesort descending Description
field_defaults_admin_settings_form Admin settings form for field defaults.