function taxonomy_access_disable_vocab_confirm_page in Taxonomy Access Control 7
Page callback: Returns a confirmation form to disable a vocabulary.
@todo Check if vocab is enabled and return a 404 otherwise?
Parameters
int $rid: The role ID.
object $vocab: The vocabulary object.
See also
taxonomy_access_disable_vocab_confirm_page()
1 string reference to 'taxonomy_access_disable_vocab_confirm_page'
- taxonomy_access_menu in ./
taxonomy_access.module - Implements hook_menu().
File
- ./
taxonomy_access.admin.inc, line 652 - Administrative interface for taxonomy access control.
Code
function taxonomy_access_disable_vocab_confirm_page($rid, $vocab) {
$rid = intval($rid);
// Return a 404 on invalid vid or rid.
if (!$vocab->vid || !$rid) {
return MENU_NOT_FOUND;
}
return drupal_get_form('taxonomy_access_disable_vocab_confirm', $rid, $vocab);
}