The hook will be like this:
function hook_question_answer_enable($node) {
// Example: only allow Q/A in odd nodes !
return $node->nid & 1;
}
The hook will be like this:
function hook_question_answer_enable($node) {
// Example: only allow Q/A in odd nodes !
return $node->nid & 1;
}
Comments
Comment #1
jcisio commentedIn the future release, this hook could be used for $node->type also. Remember: one FALSE is enough to disable Q/A feature no matter how many modules returning TRUE.