You are here

function panels_vid_settings_form in Panels 5.2

Same name and namespace in other branches
  1. 6.2 arguments/vid.inc \panels_vid_settings_form()

Settings form for the argument

1 string reference to 'panels_vid_settings_form'
panels_vid_panels_arguments in arguments/vid.inc
@file arguments/vid.inc

File

arguments/vid.inc, line 48
arguments/vid.inc

Code

function panels_vid_settings_form($conf) {
  $options = array();
  foreach (taxonomy_get_vocabularies() as $vid => $voc) {
    $options[$vid] = $voc->name;
  }
  $form['displays'] = array(
    '#title' => t('Own display'),
    '#type' => 'checkboxes',
    '#options' => $options,
    '#default_value' => $conf['displays'],
    '#description' => t('Each checked vocabulary will get its own special display to layout its content.'),
    '#prefix' => '<div class="clear-block">',
    '#suffix' => '</div>',
  );
  return $form;
}