function seotools_kwresearch_kwresearch_keyword_sync_vocabulary_form in Drupal SEO Tools 6
1 string reference to 'seotools_kwresearch_kwresearch_keyword_sync_vocabulary_form'
File
- plugins/
seotools.presets.inc, line 572
Code
function seotools_kwresearch_kwresearch_keyword_sync_vocabulary_form() {
// Populate the vocab_options array
$vocabs = taxonomy_get_vocabularies();
$vocab_options = array(
0 => '<none>',
);
foreach ($vocabs as $id => $vocab) {
$vocab_options[$vocab->vid] = $vocab->name;
}
$form['kwresearch_keyword_sync_vocabulary'] = array(
'#type' => 'select',
'#title' => 'Vocabulary for Autotagging Keywords',
'#options' => $vocab_options,
'#default_value' => variable_get('kwresearch_keyword_sync_vocabulary', 0),
'#description' => '<div>In order to use autotagging, it must be associated with a vocabulary. Please select a vocabulary to use.</div>',
);
return system_settings_form($form);
}