You are here

function fb_social_nodeapi in Facebook social plugins integration 6.2

Implements of hook_nodeapi().

File

./fb_social.module, line 138

Code

function fb_social_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  switch ($op) {
    case 'view':
      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_nodeapi_view');
          if ($function) {
            $function($preset, $node, $op, $a3, $a4);
          }
        }
      }
      break;
  }
}