function media_field_widget_info in D7 Media 7
Same name and namespace in other branches
- 7.4 includes/media.fields.inc \media_field_widget_info()
- 7.2 includes/media.fields.inc \media_field_widget_info()
- 7.3 includes/media.fields.inc \media_field_widget_info()
Implement hook_field_widget_info().
File
- includes/
media.fields.inc, line 60 - : Provides a "Multimedia asset" field to the fields API
Code
function media_field_widget_info() {
return array(
'media_generic' => array(
'label' => t('Media file selector'),
'field types' => array(
'media',
'file',
'image',
),
'settings' => array(
'progress_indicator' => 'throbber',
'allowed_types' => array(
'image',
),
'allowed_schemes' => array(
'public',
'private',
),
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_DEFAULT,
'default value' => FIELD_BEHAVIOR_NONE,
),
),
);
}