function videoftp_elements in Video 6.5
Same name and namespace in other branches
- 6.4 types/videoftp/videoftp.module \videoftp_elements()
Implementation of hook_elements().
File
- types/
videoftp/ videoftp.module, line 67
Code
function videoftp_elements() {
$elements = array();
$filefield_elements = module_invoke('filefield', 'elements');
$elements['videoftp_widget'] = $filefield_elements['filefield_widget'];
$elements['videoftp_widget']['#columns'][] = 'filepath';
$elements['videoftp_widget']['#process'] = array(
'videoftp_widget_process',
);
$elements['videoftp_widget']['#value_callback'] = 'videoftp_widget_value';
// Support for the imagefield_extended module
if (module_exists('imagefield_extended')) {
$elements['uploadfield_widget']['#process'][] = 'imagefield_extended_widget_process';
}
return $elements;
$elements = array(
'videoftp_widget' => array(
'#input' => TRUE,
//
'#columns' => array(
'fid',
'list',
'data',
'filepath',
),
//
'#process' => array(
'videoftp_widget_process',
),
//
'#value_callback' => 'videoftp_widget_value',
),
);
// Support for the imagefield_extended module
if (module_exists('imagefield_extended')) {
$elements['videoftp_widget']['#process'][] = 'imagefield_extended_widget_process';
}
return $elements;
}