function _taxonomy_access_defaults in Taxonomy Access Control 5.2
Same name and namespace in other branches
- 5 taxonomy_access.module \_taxonomy_access_defaults()
Provide default values for term_access_defaults
File
- ./
taxonomy_access.module, line 285 - Allows administrators to specify how each category (in the taxonomy) can be used by various roles.
Code
function _taxonomy_access_defaults($vid, $rid) {
if ($rid == 1 || $rid == 2) {
return array(
$vid,
$rid,
1,
0,
0,
1,
1,
);
}
else {
return array(
$vid,
$rid,
0,
0,
0,
0,
0,
);
}
}