function date_widget in Date 6.2
Same name and namespace in other branches
- 5.2 date/date.module \date_widget()
- 5 date.module \date_widget()
- 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 514 - Defines date/time field types for the Content Construction Kit (CCK).
Code
function date_widget(&$form, &$form_state, &$field, $items, $delta) {
require_once './' . drupal_get_path('module', 'date') . '/date_elements.inc';
return _date_widget($form, $form_state, $field, $items, $delta);
}