function fb_social_comments_type in Facebook social plugins integration 6
helper function for testing wether $type is selected to be a fb_social_comment type
2 calls to fb_social_comments_type()
- fb_social_comments_content_extra_fields in modules/
fb_social_comments/ fb_social_comments.module - Implementation of hook_content_extra_fields.
- fb_social_comments_nodeapi in modules/
fb_social_comments/ fb_social_comments.module - Implementation of hook_nodeapi().
File
- modules/
fb_social_comments/ fb_social_comments.module, line 148
Code
function fb_social_comments_type($type) {
$fb_like_types = variable_get('fb_social_comments_node_types', array());
return isset($fb_like_types[$type]) && $fb_like_types[$type] ? TRUE : FALSE;
}