You are here

function node_gallery_api_get_view_modes in Node Gallery 7

Get view mode info for nodes.

Return value

array All view modes for nodes

1 call to node_gallery_api_get_view_modes()
node_gallery_api_relationship_type_settings_form in ./node_gallery_api.admin.inc
Form definition for Relationship Type settings form.

File

./node_gallery_api.inc, line 536
Node Gallery API function

Code

function node_gallery_api_get_view_modes() {
  $entity_info = entity_get_info('node');
  $view_modes = array();
  foreach ($entity_info['view modes'] as $name => $info) {
    $view_modes[$name] = $info['label'];
  }
  return $view_modes;
}