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

jcisio’s picture

Title: Provide a hook_question_answer_enable() to limit Q/A feature to only a certains number of nodes in a content type » Provide a hook_question_answer_enable() to limit Q/A feature to only a certain number of nodes

In 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.