You are here

function fb_social_content_extra_fields in Facebook social plugins integration 6.2

Implementation of hook_content_extra_fields.

File

./fb_social.module, line 157

Code

function fb_social_content_extra_fields($type_name) {
  $extras = array();
  if ($presets = fb_social_get_presets()) {
    foreach ($presets as $preset) {
      $plugin = fb_social_fb_plugin_load($preset->plugin_type);
      $function = ctools_plugin_get_function($plugin, 'hook_content_extra_fields');
      if ($function) {
        $extras = $function($preset, $type_name);
      }
    }
  }
  return $extras;
}