You are here

function views_plugin_argument_default_headerimage::options_form in Header image 7

Provide the default form for setting options.

Overrides views_plugin_argument_default::options_form

File

views/views_plugin_argument_default_headerimage.inc, line 20
Contains the Header image argument default plugin.

Class

views_plugin_argument_default_headerimage
This class provides an argument default plugin that returns the header image for the page it is displayed on.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['block'] = array(
    '#type' => 'select',
    '#title' => t('The Header Image Block'),
    '#options' => headerimage_get_blocks(),
    '#default_value' => $this->options['block'],
    '#description' => t('Choose the Header Image Block to get the Node ID (nid) from'),
  );
}