You are here

function seotools_linkintel_suggestions_seed_vocabs_form in Drupal SEO Tools 6

1 string reference to 'seotools_linkintel_suggestions_seed_vocabs_form'
seotools_linkintel_suggestions_seed_vocabs in plugins/seotools.presets.inc

File

plugins/seotools.presets.inc, line 689

Code

function seotools_linkintel_suggestions_seed_vocabs_form() {
  $vocabs = taxonomy_get_vocabularies();
  $options = array();
  if (!empty($vocabs)) {
    foreach ($vocabs as $vid => $v) {
      $options[$vid] = $v->name;
    }
    $form['seeding']['linkintel_suggestions_seed_vocabs'] = array(
      '#type' => 'checkboxes',
      '#title' => t('Seed vocabularies'),
      '#options' => $options,
      '#default_value' => variable_get('linkintel_suggestions_seed_vocabs', array()),
      '#description' => t('Select vocabularies to gather terms for seeding the link suggestions tool.'),
    );
  }
  else {
    $form['tax_vocabs']['linkintel_suggestions_seed_vocabs'] = array(
      '#type' => 'item',
      '#value' => t('There are currently no taxonomy vocabularies to sync. !link', array(
        '!link' => l(t('Click here to create a vocabulary.'), 'admin/content/taxonomy/add/vocabulary'),
      )),
    );
  }
  return system_settings_form($form);
}