function talk_activated in Talk 5
Same name and namespace in other branches
- 6 talk.module \talk_activated()
- 7 talk.module \talk_activated()
Is talk page option activated for node tpye?
6 calls to talk_activated()
- talk_comment in ./
talk.module - Implementation of hook_comment() Changing the destination to the talk page after posting a comment
- talk_form_alter in ./
talk.module - Implementation of hook_form_alter().
- talk_link in ./
talk.module - Implementation of hook_link().
- talk_menu in ./
talk.module - Implementation of hook_menu().
- talk_nodeapi in ./
talk.module - Implementation of hook_nodeapi().
File
- ./
talk.module, line 161 - Comments are displayed in a separate 'talk' tab, for node types you wish Made for Drupal 5.x
Code
function talk_activated($node_type, $value = NULL) {
if (is_null($value)) {
return variable_get('comment_talk_' . $node_type, FALSE);
}
variable_set('comment_talk_' . $node_type, $value);
}