| 6 taxonomy.admin.inc | taxonomy_vocabulary_confirm_reset_alphabetical(&$form_state, $vid) |
| 7 taxonomy.admin.inc | taxonomy_vocabulary_confirm_reset_alphabetical($form, &$form_state, $vid) |
| 8 taxonomy.admin.inc | taxonomy_vocabulary_confirm_reset_alphabetical($form, &$form_state, $vid) |
Form builder to confirm reseting a vocabulary to alphabetical order.
See also
taxonomy_vocabulary_confirm_reset_alphabetical_submit()
Related topics
1 call to taxonomy_vocabulary_confirm_reset_alphabetical()
File
- modules/
taxonomy/ taxonomy.admin.inc, line 899 - Administrative page callbacks for the taxonomy module.
Code
function taxonomy_vocabulary_confirm_reset_alphabetical(&$form_state, $vid) {
$vocabulary = taxonomy_vocabulary_load($vid);
$form['type'] = array(
'#type' => 'value',
'#value' => 'vocabulary',
);
$form['vid'] = array(
'#type' => 'value',
'#value' => $vid,
);
$form['name'] = array(
'#type' => 'value',
'#value' => $vocabulary->name,
);
$form['reset_alphabetical'] = array(
'#type' => 'value',
'#value' => TRUE,
);
return confirm_form($form,
t('Are you sure you want to reset the vocabulary %title to alphabetical order?',
array('%title' => $vocabulary->name)),
'admin/content/taxonomy/' . $vid,
t('Resetting a vocabulary will discard all custom ordering and sort items alphabetically.'),
t('Reset to alphabetical'),
t('Cancel'));
}
Login or register to post comments