You are here

function scald_views_handler_field_representation::options_form in Scald: Media Management made easy 6

Same name and namespace in other branches
  1. 7 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.

File

includes/scald_views_handler_field_representation.inc, line 28
Provides a field containing the representation of an atom, in a choosen context.

Class

scald_views_handler_field_representation
@file Provides a field containing the representation of an atom, in a choosen context.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $scald_config = variable_get('scald_config', 0);
  foreach ($scald_config->contexts as $name => $context) {
    $options[$name] = $name;
  }
  $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,
  );
}