You are here

function mediafront_widget in MediaFront 6

Same name and namespace in other branches
  1. 6.2 mediafront_field.inc \mediafront_widget()

Implementation of hook_widget().

File

./mediafront_field.inc, line 106
Provides CCK integration for the mediafront module

Code

function mediafront_widget(&$form, &$form_state, $field, $items) {
  $element = array(
    '#tree' => TRUE,
  );
  $element['params'] = array(
    '#type' => 'value',
    '#value' => $field['params'],
  );

  // CCK likes to always have a 2D array for form elements.
  $element = array(
    $element,
  );
  return $element;
}