function taxonomy_access_form_alter in Taxonomy Access Control 5
Same name and namespace in other branches
- 5.2 taxonomy_access.module \taxonomy_access_form_alter()
- 6 taxonomy_access.module \taxonomy_access_form_alter()
Implementation of hook_form_alter()
File
- ./
taxonomy_access.module, line 198 - Allows administrators to specify how each category (in the taxonomy) can be used by various roles.
Code
function taxonomy_access_form_alter($form_id, &$form) {
if ($form['#id'] == 'node-form' && is_numeric($form['nid']['#value'])) {
$form['tac_protected_terms'] = array(
'#type' => 'value',
'#value' => taxonomy_access_preserve_terms($form['nid']['#value']),
);
}
}