You are here

function facebook_comments_is_enabled in Facebook Comments Social Plugin 7

Helper function to determine if Facebook commenting is enabled.

1 call to facebook_comments_is_enabled()
facebook_comments_field_extra_fields in ./facebook_comments.module
Implements hook_field_extra_fields().

File

./facebook_comments.module, line 265
Facebook Comments Social Plugin module file.

Code

function facebook_comments_is_enabled($type) {
  $default_types = variable_get('facebook_comments_types', array());
  if (isset($default_types[$type]) && $default_types[$type] === $type) {
    return TRUE;
  }
  return FALSE;
}