You are here

function markup_view_form_alter in Markup 6

Implements hook_form_alter().

File

contrib/markup_view/markup_view.module, line 229
Defines a field type for displaying a view on the node/edit form.

Code

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

    // 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']);
  }
}