You are here

function libraries_invoke in Libraries API 8.3

Same name and namespace in other branches
  1. 7.3 libraries.module \libraries_invoke()
  2. 7.2 libraries.module \libraries_invoke()

Invokes library callbacks.

Parameters

$group: A string containing the group of callbacks that is to be applied. Should be either 'info', 'pre-detect', 'post-detect', or 'load'.

$library: An array of library information, passed by reference.

Deprecated

Will be removed before a stable Drupal 8 release. Please use the new library load and managment concepts described at: https://www.drupal.org/node/2170763

3 calls to libraries_invoke()
libraries_detect in ./libraries.module
Tries to detect a library and its installed version.
libraries_info in ./libraries.module
Returns information about registered libraries.
libraries_load in ./libraries.module
Loads a library.

File

./libraries.module, line 213
External library handling for Drupal modules.

Code

function libraries_invoke($group, &$library) {
  foreach ($library['callbacks'][$group] as $callback) {
    libraries_traverse_library($library, $callback);
  }
}