You are here

function _fb_social_comments_field_extra_fields in Facebook social plugins integration 7.2

content_extra_fields callback for this plugin

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

File

plugins/fb_plugin/comments.inc, line 161

Code

function _fb_social_comments_field_extra_fields(&$extras, $preset) {
  $types = $preset->settings['node_types']['types'];
  foreach ($types as $type => $value) {
    if (!empty($value)) {
      $extras['node'][$type]['display']['fb_social_' . $preset->name] = array(
        'label' => t('Facebook comment: ' . $preset->name),
        'description' => t('The "comment" plugin field from ' . $preset->name . ' preset'),
        'weight' => 20,
      );
    }
  }
}