| 1 file.field.inc | file_field_widget_info() |
Implements hook_field_widget_info().
File
- core/
modules/ file/ file.field.inc, line 729 - Field module functionality for the File module.
Code
function file_field_widget_info() {
$info = array(
'file_generic' => array(
'label' => t('File'),
'field types' => array('file'),
'settings' => array(
'progress_indicator' => 'throbber',
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_CUSTOM,
'default value' => FIELD_BEHAVIOR_NONE,
),
),
);
// Add settings for all widgets that support inline fields.
foreach (file_field_inline_fields_widgets() as $widget_type => $widget) {
if (isset($info[$widget_type]['settings'])) {
$info[$widget_type]['settings'] += array(
'inline_fields_option' => 1,
'inline_fields' => array(),
);
}
}
return $info;
}