function taxonomy_vocabulary_deploy_add_form in Deploy - Content Staging 6
Display vocabulary deploy form.
Parameters
$form_state: FAPI form state
$vid: The vid of the vocabulary we want to deploy.
Return value
FAPI array
See also
taxonomy_vocabulary_deploy_add_form_submit()
1 string reference to 'taxonomy_vocabulary_deploy_add_form'
- taxonomy_deploy_menu in modules/
taxonomy_deploy/ taxonomy_deploy.module - Implementation of hook_menu().
File
- modules/
taxonomy_deploy/ taxonomy_deploy.pages.inc, line 14
Code
function taxonomy_vocabulary_deploy_add_form($form_state, $vid) {
// Get options list for vocabularies
$vocabularies = taxonomy_get_vocabularies();
$options = array();
foreach ($vocabularies as $vid => $vocabulary) {
$options[$vid] = $vocabulary->name;
}
$form = deploy_get_server_form();
$form['vid'] = array(
'#title' => t('Vocabulary'),
'#type' => 'select',
'#options' => $options,
'#required' => TRUE,
'#description' => t('The vocabulary you want to deploy'),
'#weight' => 0,
);
return $form;
}