You are here

function fb_social_like_type in Facebook social plugins integration 6

helper function for testing wether $type is selected to be a fb_social_like type

4 calls to fb_social_like_type()
fb_social_like_content_extra_fields in modules/fb_social_like/fb_social_like.module
Implementation of hook_content_extra_fields.
fb_social_like_init in modules/fb_social_like/fb_social_like.module
Implementation of hook init @todo Implement block settings form @todo og:image (http://developers.facebook.com/docs/reference/plugins/like)
fb_social_like_link in modules/fb_social_like/fb_social_like.module
Implementation of hook_link
fb_social_like_nodeapi in modules/fb_social_like/fb_social_like.module
Implementation of hook_nodeapi().

File

modules/fb_social_like/fb_social_like.module, line 201

Code

function fb_social_like_type($type) {
  $fb_like_types = variable_get('fb_social_like_node_types', array());
  return isset($fb_like_types[$type]) && $fb_like_types[$type] ? TRUE : FALSE;
}