You are here

function panels_ajax_passthru in Panels 5.2

Helper function for our AJAX stuff to call through to the right location

1 string reference to 'panels_ajax_passthru'
panels_menu in ./panels.module
Implementation of hook_menu

File

./panels.module, line 146
panels.module Core API for Panels. Provides display editing and rendering capabilities.

Code

function panels_ajax_passthru() {
  $args = func_get_args();
  $callback = array_shift($args);
  panels_load_include('plugins');
  if (arg(1) == 'common') {
    panels_load_include('common');
  }
  else {
    panels_load_include('display_edit');
  }
  return call_user_func_array($callback, $args);
}