function brightcove_mm_config in Brightcove Video Connect 6.2
Same name and namespace in other branches
- 6 brightcove.media_mover.inc \brightcove_mm_config()
Media Mover configuration form element for Brightcove.
See also
brightcove_validate_configuration().
1 call to brightcove_mm_config()
- brightcove_media_mover in ./
brightcove.module - Implementation of hook_media_mover().
File
- ./
brightcove.media_mover.inc, line 55 - Functions to implement Media Mover behavior for Brightcove.
Code
function brightcove_mm_config($configuration) {
$form['brightcove_mm_config'] = array(
'#type' => 'fieldset',
'#title' => t('Upload to Brightcove configuration'),
'#element_validate' => array(
'brightcove_mm_validate_configuration',
array(
'brightcove_mm_config',
),
),
);
$form['brightcove_mm_config']['brightcove_mm_default_title'] = array(
'#title' => t('Default title'),
'#type' => 'textfield',
'#default_value' => $configuration['brightcove_mm_default_title'] ? $configuration['brightcove_mm_default_title'] : '',
'#description' => t('Videos which do not belong to a node will be given this title.'),
);
$form['brightcove_mm_config']['brightcove_mm_default_description'] = array(
'#title' => t('Default description'),
'#type' => 'textarea',
'#default_value' => $configuration['brightcove_mm_default_description'] ? $configuration['brightcove_mm_default_description'] : 'Default description',
'#description' => t('Videos which do not belong to a node will be given this description.'),
);
$form['brightcove_mm_config']['brightcove_mm_description_length'] = array(
'#title' => t('Description length'),
'#description' => t('If description is inherited from a node, how many characters from body to take?'),
'#type' => 'textfield',
'#size' => 10,
'#default_value' => $configuration['brightcove_mm_description_length'] ? $configuration['brightcove_mm_description_length'] : 300,
);
return $form;
}