You are here

function taxonomy_server_settings in Taxonomy import/export via XML 7

Form builder for server settings.

See also

taxonomy_server_settings_submit()

1 string reference to 'taxonomy_server_settings'
taxonomy_server_menu in taxonomy_server/taxonomy_server.module
Implementation of hook_menu: Define menu links.

File

taxonomy_server/taxonomy_server.module, line 162
Extends taxonomy_xml to publish downloadable or queriable taxonomy vocabularies and terms. Extends the Drupal URLs to make vocabulary information available under /taxonomy/vocabulary and /taxonomy/vocabulary/{vid}.

Code

function taxonomy_server_settings($form) {
  $form = array();
  $form['taxonomy_xml_show_data_tabs'] = array(
    '#title' => t('Display tabs for direct data download on the vocabulary and term pages'),
    '#type' => 'checkbox',
    '#default_value' => variable_get('taxonomy_xml_show_data_tabs', FALSE),
    '#description' => t('Access to this data is restricted through the user permissions. This option just controls whether the data is directly visible.'),
  );
  $form['#submit']['taxonomy_xml'] = 'taxonomy_server_settings_submit';
  return system_settings_form($form);
}