drupal_load

5 bootstrap.inc drupal_load($type, $name)
6 bootstrap.inc drupal_load($type, $name)
7 bootstrap.inc drupal_load($type, $name)
8 bootstrap.inc drupal_load($type, $name)

Includes a file with the provided type and name.

This prevents including a theme, engine, module, etc., more than once.

Parameters

$type: The type of item to load (i.e. theme, theme_engine, module).

$name: The name of the item to load.

Return value

TRUE if the item is loaded or has already been loaded.

15 calls to drupal_load()

File

includes/bootstrap.inc, line 1116
Functions that need to be loaded on every Drupal request.

Code

function drupal_load($type, $name) {
  // Once a file is included this can't be reversed during a request so do not
  // use drupal_static() here.
  static $files = array();

  if (isset($files[$type][$name])) {
    return TRUE;
  }

  $filename = drupal_get_filename($type, $name);

  if ($filename) {
    include_once DRUPAL_ROOT . '/' . $filename;
    $files[$type][$name] = TRUE;

    return TRUE;
  }

  return FALSE;
}

Comments

Drupal 7: Bootstrap.inc

Deprecated function: Call-time pass-by-reference has been deprecated in drupal_load() (line 1128 of /srv/www/htdocs/www.patmower.com/drupal/includes/bootstrap.inc).

This is the error I get. I try to remove various modules, and I had it not appear once, but then it came back....any ideas?

Thanks

Login or register to post comments