function field_kaltura_widget_info in Kaltura 5
Same name and namespace in other branches
- 6.2 plugins/field_kaltura/field_kaltura.module \field_kaltura_widget_info()
- 6 plugins/field_kaltura/field_kaltura.module \field_kaltura_widget_info()
Implementation of hook_widget_info().
Here we indicate that the content module will handle the default value and multiple values for these widgets.
Callbacks can be omitted if default handing is used. They're included here just so this module can be used as an example for custom modules that might do things differently.
File
- plugins/
field_kaltura/ field_kaltura.module, line 280 - kaltura integration module - functions to provide kaltura as CCK field
Code
function field_kaltura_widget_info() {
return array(
'field_kaltura_textfield' => array(
'label' => t('Kaltura Media'),
'field types' => array(
'Kaltura_Media',
),
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
'default value' => CONTENT_CALLBACK_DEFAULT,
),
),
'field_kaltura_remix_textfield' => array(
'label' => t('Kaltura Media Remix'),
'field types' => array(
'Kaltura_Media_Remix',
),
'multiple values' => CONTENT_HANDLE_CORE,
'callbacks' => array(
'default value' => CONTENT_CALLBACK_DEFAULT,
),
),
);
}