You are here

function panels_term_from_node_settings_form in Panels 6.2

Same name and namespace in other branches
  1. 5.2 relationships/term_from_node.inc \panels_term_from_node_settings_form()

Settings form for the relationship

1 string reference to 'panels_term_from_node_settings_form'
panels_term_from_node_panels_relationships in relationships/term_from_node.inc
@file relationships/term_from_node.inc

File

relationships/term_from_node.inc, line 44
relationships/term_from_node.inc

Code

function panels_term_from_node_settings_form($conf) {
  $options = array();
  foreach (taxonomy_get_vocabularies() as $vid => $vocabulary) {
    $options[$vid] = $vocabulary->name;
  }
  $form['vid'] = array(
    '#title' => t('Vocabulary'),
    '#type' => 'select',
    '#options' => $options,
    '#default_value' => $conf['vid'],
    '#prefix' => '<div class="clear-block">',
    '#suffix' => '</div>',
  );
  return $form;
}