/** * Implements template_preprocess_views_view(). * Change the "Change to Draft" link open in Popup mode. * IM-13 : Action: Return the Publication * @param $vars */ function adaptivetheme_admin_preprocess_views_view(&$vars) { $view = $vars['view']; if ($view->name == "workbench_moderation") { $output = !empty($vars['rows']) ? $vars['rows'] : $vars['empty']; $form = drupal_get_form(views_form_id($view), $view, $output); $vars['rows'] = $form; } }
public function __construct($order_id = NULL) { if (is_null($order_id)) { global $user; $order = commerce_cart_order_load($user->uid); } else { $order = commerce_order_load($order_id); } $this->order_id = $order->order_id; $view = $this->getCartView(); $output = ''; parent::__construct(views_form_id($view), $view, $output); }