You are here

function markup_form_alter in Markup 7

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

Remove 'number of values' selection.

File

./markup.module, line 148
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 == 'field_ui_field_edit_form') {
    if ($form['#field']['module'] == 'markup') {
      unset($form['field']['cardinality']);
    }
  }
}