You are here

function _fb_social_like_field_extra_fields in Facebook social plugins integration 7.2

content_extra_fields callback for this plugin

1 string reference to '_fb_social_like_field_extra_fields'
like.inc in plugins/fb_plugin/like.inc

File

plugins/fb_plugin/like.inc, line 164

Code

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