You are here

function fb_social_preset_node_types in Facebook social plugins integration 7.2

Same name and namespace in other branches
  1. 6.2 fb_social.module \fb_social_preset_node_types()

Does $preset should be shown on node of type $type

8 calls to fb_social_preset_node_types()
_fb_social_comments_link in plugins/fb_plugin/comments.inc
Pseudo hook_link for this plugin
_fb_social_comments_nodeapi_view in plugins/fb_plugin/comments.inc
nodeapi_view callback for this plugin
_fb_social_like_link in plugins/fb_plugin/like.inc
Pseudo hook_link for this plugin
_fb_social_like_nodeapi_view in plugins/fb_plugin/like.inc
nodeapi_view callback for this plugin
_fb_social_send_link in plugins/fb_plugin/send.inc
Pseudo hook_link for this plugin

... See full list

File

./fb_social.module, line 784

Code

function fb_social_preset_node_types($preset, $node_type) {
  $types = $preset->settings['node_types']['types'];
  if (!is_array($types)) {
    return FALSE;
  }
  return !empty($types[$node_type]);
}