function filefield_elements in FileField 6.3
Same name and namespace in other branches
- 6.2 filefield.module \filefield_elements()
Implementation of hook_elements().
File
- ./
filefield.module, line 53 - FileField: Defines a CCK file field type.
Code
function filefield_elements() {
$elements = array();
$elements['filefield_widget'] = array(
'#input' => TRUE,
'#columns' => array(
'fid',
'list',
'data',
),
'#process' => array(
'filefield_widget_process',
),
'#after_build' => array(
'filefield_widget_after_build',
),
'#value_callback' => 'filefield_widget_value',
'#element_validate' => array(
'filefield_widget_validate',
),
);
return $elements;
}