You are here

function content_taxonomy_tree_widget in Content Taxonomy 6.2

Same name and namespace in other branches
  1. 6 content_taxonomy_tree.module \content_taxonomy_tree_widget()

Implementation of hook_widget().

File

./content_taxonomy_tree.module, line 78

Code

function content_taxonomy_tree_widget(&$form, &$form_state, $field, $items, $delta = NULL) {
  $element = array(
    '#type' => 'content_taxonomy_tree',
    '#default_value' => !empty($items) ? $items : array(),
  );
  return $element;
}