You are here

function panels_load_include in Panels 6.3

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

Load a panels include file.

Deprecated

This function is deprecated and should no longer be used. It will be removed in the next major version of Panels. Use ctools_include() instead.

Related topics

File

./panels.module, line 1607
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;
  }
}