You are here

function sharemessage_view in Share Message 7

Entity view callback.

1 call to sharemessage_view()
sharemessage_block_view in ./sharemessage.module
Implements hook_block_view().
1 string reference to 'sharemessage_view'
sharemessage_test_menu in tests/modules/sharemessage_test/sharemessage_test.module
Implements hook_menu().

File

./sharemessage.module, line 439
New Sharing Module.

Code

function sharemessage_view(ShareMessage $sharemessage) {
  $view_mode = variable_get('sharemessage_view_default_view_mode', 'full');
  return entity_view($sharemessage
    ->entityType(), array(
    $sharemessage,
  ), $view_mode, NULL, TRUE);
}