You are here

function _fb_social_get_node_view_modes in Facebook social plugins integration 7.2

get nodes view modes

4 calls to _fb_social_get_node_view_modes()
comments_drupal_settings in plugins/fb_plugin/comments.inc
like_drupal_settings in plugins/fb_plugin/like.inc
send_drupal_settings in plugins/fb_plugin/send.inc
subscribe_drupal_settings in plugins/fb_plugin/subscribe.inc

File

./fb_social.module, line 796

Code

function _fb_social_get_node_view_modes() {

  //get view modes
  $view_modes = array();
  $info = entity_get_info('node');
  foreach ($info['view modes'] as $k => $v) {
    $view_modes[$k] = $v['label'];
  }
  return $view_modes;
}