You are here

function markup_form_alter in Markup 6

Same name and namespace in other branches
  1. 7 markup.module \markup_form_alter()

Implements hook_form_alter().

File

./markup.module, line 308
Defines a field type for displaying markup on the node/edit form.

Code

function markup_form_alter(&$form, $form_state, $form_id) {
  if ($form_id == 'content_field_edit_form' && $form['module']['#value'] == 'markup') {

    // Remove non-applicable fields on the widget settings form.
    unset($form['widget']['description']);
    unset($form['widget']['default_value_fieldset']['advanced_options']);
    unset($form['field']['required']);
    unset($form['field']['multiple']);
    unset($form['field']['#description']);
  }
}