You are here

function commerce_message_history in Commerce Message 7

Displays the complete history for the given order.

1 string reference to 'commerce_message_history'
commerce_message_menu in ./commerce_message.module
Implements hook_menu().

File

./commerce_message.module, line 98

Code

function commerce_message_history($order) {
  $arguments = array(
    $order->order_id,
  );
  $view = views_get_view('commerce_message_messages');
  $view
    ->set_display('block_1');
  $view
    ->set_arguments($arguments);
  $view->override_url = $_GET['q'];
  return $view
    ->preview();
}