EclipseGc

Untitled

Mar 21st, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1.       <?php
  2.         $data = views_get_view('product_index');
  3.         if ($data) {
  4.           // Set the display.
  5.           $data->set_display('ctools_context_2');
  6.           ctools_include('context');
  7.           ctools_include('content');
  8.           ctools_include('plugins');
  9.           $view_context = ctools_context_create('view', $data);
  10.           if ($callback = ctools_plugin_load_function('ctools', 'content_types', 'views_exposed', 'render callback')) {
  11.             $output = $callback('', array(), array(), $view_context);
  12.             print $output->content;
  13.           }
  14.         }
  15.       ?>
Advertisement
Add Comment
Please, Sign In to add comment