You are here

function markup_view_widget in Markup 6

Implements hook_widget().

File

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

Code

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