function scald_views_handler_field_representation::options_form in Scald: Media Management made easy 7
Same name and namespace in other branches
- 6 includes/scald_views_handler_field_representation.inc \scald_views_handler_field_representation::options_form()
Allow to choose in which context the atom should be rendered.
Overrides views_handler_field::options_form
File
- includes/
scald_views_handler_field_representation.inc, line 28 - Provides a field containing the representation of an atom.
Class
- scald_views_handler_field_representation
- @file Provides a field containing the representation of an atom.
Code
function options_form(&$form, &$form_state) {
parent::options_form($form, $form_state);
$options = array();
$contexts = scald_contexts_public();
foreach ($contexts as $name => $context) {
$options[$name] = $context['title'];
}
$form['context'] = array(
'#type' => 'select',
'#title' => t('Context'),
'#default_value' => $this->options['context'],
'#description' => t('The context in which the atom should be rendered.'),
'#options' => $options,
);
}