You are here

function markup_widget in Markup 6

Implements hook_widget().

File

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

Code

function markup_widget(&$form, &$form_state, $field, $items, $delta = 0) {
  $element = array(
    '#type' => 'markup_widget',
    '#markup' => $field['markup'],
    '#markup_php' => $field['markup_php'],
    '#value' => array(),
  );
  return $element;
}