You are here

function _fb_social_comments_content_extra_fields in Facebook social plugins integration 6.2

content_extra_fields callback for this plugin

1 string reference to '_fb_social_comments_content_extra_fields'
comments.inc in plugins/fb_plugin/comments.inc

File

plugins/fb_plugin/comments.inc, line 165

Code

function _fb_social_comments_content_extra_fields($preset, $type_name) {
  $extras = array();
  if (fb_social_preset_node_types($preset, $type_name)) {
    $extras['fb_social_' . $preset->plugin_type . '_' . $preset->name] = array(
      'label' => t('Facebook social:  ' . $preset->name . ' plugin'),
      'description' => t('The "' . $preset->plugin_type . '" plugin field from ' . $preset->name . ' preset'),
      'weight' => 20,
    );
  }
  return $extras;
}