function media_field_widget_info in D7 Media 7.2
Same name and namespace in other branches
- 7.4 includes/media.fields.inc \media_field_widget_info()
- 7 includes/media.fields.inc \media_field_widget_info()
- 7.3 includes/media.fields.inc \media_field_widget_info()
Implements hook_field_widget_info().
File
- includes/
media.fields.inc, line 11 - Provide media selector widget and media field formatters to the fields API.
Code
function media_field_widget_info() {
return array(
'media_generic' => array(
'label' => t('Media browser'),
'field types' => array(
'file',
'image',
),
'settings' => array(
'allowed_types' => array(
'image' => 'image',
),
'browser_plugins' => array(),
'allowed_schemes' => array(
'public' => 'public',
),
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_CUSTOM,
'default value' => FIELD_BEHAVIOR_NONE,
),
),
);
}