You are here

function panels_load_include in Panels 6.2

Same name and namespace in other branches
  1. 5.2 panels.module \panels_load_include()
  2. 6.3 panels.module \panels_load_include()

Load a panels include file.

56 calls to panels_load_include()
panels_ajax_add_pane_choose in includes/display-edit.inc
Entry point for AJAX: 'Add Content' modal form, from which the user selects the type of pane to add.
panels_ajax_add_pane_config in includes/display-edit.inc
AJAX entry point for to configure a pane that has just been added.
panels_ajax_cache_method in includes/display-edit.inc
Entry point for AJAX modal: configure pane cache method
panels_ajax_cache_settings in includes/display-edit.inc
Handle the cache settings form
panels_ajax_configure_pane in includes/display-edit.inc
AJAX entry point for to configure a pane that has just been added.

... See full list

File

./panels.module, line 213
panels.module

Code

function panels_load_include($include, $path = 'includes/') {
  static $loaded = array();
  if (empty($loaded["{$path}{$include}.inc"])) {
    require_once './' . panels_get_path("{$path}{$include}.inc");
    $loaded["{$path}{$include}.inc"] = TRUE;
  }
}