function accessibility_reporting_form_field_ui_field_edit_form_alter

cis7 accessibility_reporting.module accessibility_reporting_form_field_ui_field_edit_form_alter(&$form, $form_state)
cle7 accessibility_reporting.module accessibility_reporting_form_field_ui_field_edit_form_alter(&$form, $form_state)
elmsmedia7 accessibility_reporting.module accessibility_reporting_form_field_ui_field_edit_form_alter(&$form, $form_state)
icor7 accessibility_reporting.module accessibility_reporting_form_field_ui_field_edit_form_alter(&$form, $form_state)
meedjum_blog7 accessibility_reporting.module accessibility_reporting_form_field_ui_field_edit_form_alter(&$form, $form_state)
mooc7 accessibility_reporting.module accessibility_reporting_form_field_ui_field_edit_form_alter(&$form, $form_state)

Implements hook_form_FORM_ID_alter().

File

sites/all/modules/ulmus/accessibility/modules/accessibility_reporting/accessibility_reporting.module, line 35

Code

function accessibility_reporting_form_field_ui_field_edit_form_alter(&$form, $form_state) {
  if (in_array($form['#field']['type'], array('text_with_summary'))) {
    $form['instance']['accessibility_reporting'] = array(
      '#type' => 'checkbox',
      '#title' => t('Report on accessibility problems in this field.'),
      '#description' => t('When checked, every time this field is viewed accessibility problems are reported back.'),
      '#default_value' => (isset($form['#instance']['accessibility_reporting'])) ? $form['#instance']['accessibility_reporting'] : FALSE,
    );
  }
}