You are here

function _field_hidden_admin_form in Field Hidden 7

Defines configuration form fields.

Implements drupal_get_form().

Parameters

array $form:

array &$form_state:

Return value

array

1 string reference to '_field_hidden_admin_form'
field_hidden_menu in ./field_hidden.module
Declares configuration page.

File

./field_hidden.admin.inc, line 17
Drupal Field Hidden module administration

Code

function _field_hidden_admin_form($form, &$form_state) {
  $form['field_hidden_help'] = array(
    '#type' => 'markup',
    '#markup' => '<p>' . l(t('Help/Readme'), 'admin/help/field_hidden') . '</p><p><hr/></p>',
  );
  $form['field_hidden_instance_settings_hide_defval'] = array(
    '#type' => 'checkbox',
    '#title' => t('Do not display default value field in instance setting form'),
    '#decription' => t('If checked, controlling/setting the default value in the field instance setting dialogue gets kind of hard.'),
    '#default_value' => variable_get('field_hidden_instance_settings_hide_defval', FALSE),
    '#required' => FALSE,
  );
  return system_settings_form($form);
}