You are here

function panels_ajax_cache in Panels 5.2

Entry point for AJAX modal: configure pane

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

File

includes/display_edit.inc, line 1194

Code

function panels_ajax_cache($did = NULL, $pid = NULL) {
  if (!((is_numeric($did) || $did == 'new') && ($cache = panels_cache_get($did)))) {
    panels_ajax_render();
  }

  // First, check to see if this is a form being submitted and, if it is, which
  // one, because we can have two forms here.
  if (!empty($_POST) && !empty($_POST['form_id']) && $_POST['form_id'] == 'panels_edit_cache_settings_form') {
    return panels_ajax_cache_settings($cache, $pid);
  }
  $method = panels_ajax_form('panels_edit_cache_method_form', t('Select cache method'), url($_GET['q'], NULL, NULL, TRUE), $cache->display, $pid);
  return panels_ajax_cache_settings($cache, $pid, $method);
}