You are here

function node_gallery_handler_field_gid::options_form in Node Gallery 6.2

File

includes/node_gallery_handler_field_gid.inc, line 18
node_gallery_handler_field_gid.inc

Class

node_gallery_handler_field_gid
@file node_gallery_handler_field_gid.inc

Code

function options_form(&$form, &$form_state) {
  $configs = node_gallery_get_config();
  foreach ($configs as $gallery_type => $config) {
    $options[$gallery_type] = $config['name'];
  }
  parent::options_form($form, $form_state);
  $form['link_to_node'] = array(
    '#title' => t('Link this field to its node'),
    '#description' => t('This will override any other link you have set.'),
    '#type' => 'checkbox',
    '#default_value' => $this->options['link_to_node'],
  );
  $form['node_gallery_setting'] = array(
    '#title' => t('Specify Node Gallery Setting'),
    '#description' => t('Specify which node gallery settings you want to use.'),
    '#type' => 'select',
    '#default_value' => $this->options['node_gallery_setting'],
    '#options' => $options,
  );
}