You are here

function ctools_ajax_run_page_preprocess in Chaos Tool Suite (ctools) 6

Function that controls if ctools_ajax_page_preprocess() will run.

Useful if not using Drupal's core CSS/JS handling & you wish to override it. If skipping the page_preprocess function you must provide the scripts and css files loaded on this page as a JS setting in the footer under CToolsAJAX.

Parameters

$value: Bool; set to FALSE to disable ctools_ajax_page_preprocess() from running.

File

includes/ajax.inc, line 626
Utilize the CTools AJAX responder.

Code

function ctools_ajax_run_page_preprocess($value = TRUE) {
  $run_hook =& ctools_static('ctools_ajax_page_preprocess', TRUE);
  $run_hook = $value;
}