You are here

function soundcloudfield_widget in SoundCloud field 6

Implementation of hook_widget().

File

./soundcloudfield.module, line 259
SoundCloud CCK field.

Code

function soundcloudfield_widget(&$form, &$form_state, $field, $items, $delta = 0) {
  $element = array(
    '#type' => $field['widget']['type'],
    '#default_value' => isset($items[$delta]) ? $items[$delta] : NULL,
  );
  return $element;
}