function taxonomy_action_form in Views Bulk Operations (VBO) 5
File
- ./
taxonomy.action.inc, line 58
Code
function taxonomy_action_form($context) {
$vocabs = taxonomy_get_vocabularies();
$form['taxonomy'] = array(
'#type' => 'fieldset',
'#title' => t('Vocabularies'),
'#tree' => true,
);
while (list(, $vocab) = each($vocabs)) {
$form['taxonomy'][$vocab->vid] = taxonomy_form($vocab->vid);
$form['taxonomy'][$vocab->vid]['#weight'] = $vocab->weight;
}
$form['do'] = array(
'#type' => 'radios',
'#title' => t('Action to take'),
'#default_value' => TAXONOMY_ACTION_ADD,
'#options' => array(
TAXONOMY_ACTION_ADD => t('Add the selected terms'),
TAXONOMY_ACTION_REPLACE => t('Replace existing terms with selected ones'),
TAXONOMY_ACTION_REPLACE_VOCABULARY => t('Replace terms within same vocabulary'),
TAXONOMY_ACTION_DELETE => t('Delete selected terms'),
),
'#required' => TRUE,
'#weight' => -2,
);
return $form;
}