You are here

function fb_social_link in Facebook social plugins integration 6.2

Same name and namespace in other branches
  1. 7.2 fb_social.module \fb_social_link()

Implementation of hook_link

File

./fb_social.module, line 175

Code

function fb_social_link($type, $object, $teaser = FALSE) {
  $links = 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_link');
      if ($function) {
        $links += $function($preset, $type, $object, $teaser);
      }
    }
  }
  return $links;
}