You are here

function date_widget in Date 5.2

Same name and namespace in other branches
  1. 5 date.module \date_widget()
  2. 6.2 date/date.module \date_widget()
  3. 6 date/date.module \date_widget()

Implementation of hook_widget().

This code and all the processes it uses are in a separate file, included only when processing forms.

File

date/date.module, line 388
Defines date/time field types for the Content Construction Kit (CCK).

Code

function date_widget($op, &$node, $field, &$items) {
  require_once './' . drupal_get_path('module', 'date') . '/date_elements.inc';
  return _date_widget($op, $node, $field, $items);
}