function angular_media_field_widget_info in CKEditor Widgets 7
Implements hook_field_widget_info().
File
- includes/
angular_media.field.inc, line 6
Code
function angular_media_field_widget_info() {
return array(
'file_angular_media' => array(
'label' => t('Angular Media Dialog'),
'field types' => array(
'file',
'image',
'media',
),
'settings' => array(
'style' => 'thumbnails',
'tabs' => variable_get('angular_media_tabs', array()),
'allowedTypes' => variable_get('angular_media_allowedTypes', array()),
'allowedSchemes' => variable_get('angular_media_allowedSchemes', array()),
'cropRatio' => variable_get('angular_media_cropRatio', array(
'free',
)),
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_CUSTOM,
//Value for field API indicating a widget can receive several field values.
'default value' => FIELD_BEHAVIOR_NONE,
),
),
);
}