function accessibility_content_form_field_ui_field_edit_form_alter

cis7 accessibility_content.module accessibility_content_form_field_ui_field_edit_form_alter(&$form, $form_state)
cle7 accessibility_content.module accessibility_content_form_field_ui_field_edit_form_alter(&$form, $form_state)
elmsmedia7 accessibility_content.module accessibility_content_form_field_ui_field_edit_form_alter(&$form, $form_state)
icor7 accessibility_content.module accessibility_content_form_field_ui_field_edit_form_alter(&$form, $form_state)
meedjum_blog7 accessibility_content.module accessibility_content_form_field_ui_field_edit_form_alter(&$form, $form_state)
mooc7 accessibility_content.module accessibility_content_form_field_ui_field_edit_form_alter(&$form, $form_state)

Implements hook_form_FORM_ID_alter().

File

sites/all/modules/ulmus/accessibility/modules/accessibility_content/accessibility_content.module, line 24

Code

function accessibility_content_form_field_ui_field_edit_form_alter(&$form, $form_state) {
  if (in_array($form['#field']['type'], array('text_with_summary'))) {
    $form['instance']['accessibility_content'] = array(
      '#type' => 'checkbox',
      '#title' => t('Check this field for accessibility'),
      '#description' => t('Allow appropriate users to check this field for accessibility'),
      '#default_value' => (isset($form['#instance']['accessibility_content'])) ? $form['#instance']['accessibility_content'] : FALSE,
    );

    $form['instance']['accessibility_content_block_submit'] = array(
      '#type' => 'checkboxes',
      '#title' => t('Block saving content if there are any errors that are:'),
      '#options' => array(
        'severe' => t('Severe'),
        'moderate' => t('Moderate'),
        'suggestion' => t('Suggestion'),
      ),
      '#default_value' => (isset($form['#instance']['accessibility_content_block_submit'])) ? $form['#instance']['accessibility_content_block_submit'] : FALSE,
    );
  }
}