function _fb_social_subscribe_field_extra_fields in Facebook social plugins integration 7.2
content_extra_fields callback for this plugin
1 string reference to '_fb_social_subscribe_field_extra_fields'
- subscribe.inc in plugins/
fb_plugin/ subscribe.inc
File
- plugins/
fb_plugin/ subscribe.inc, line 151
Code
function _fb_social_subscribe_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 subscribe: ' . $preset->name),
'description' => t('The "subscribe" plugin field from ' . $preset->name . ' preset'),
'weight' => 15,
);
}
}
}