You are here

function hook_ctools_api_hook_alter in Chaos Tool Suite (ctools) 7

Alter the list of modules/themes which implement a certain api.

The hook named here is just an example, as the real existing hooks are named for example 'hook_views_api_alter'.

Parameters

array $list: An array of informations about the implementors of a certain api. The key of this array are the module names/theme names.

File

./ctools.api.php, line 149
Hooks provided by the Chaos Tool Suite.

Code

function hook_ctools_api_hook_alter(array &$list) {

  // Alter the path of the node implementation.
  $list['node']['path'] = drupal_get_path('module', 'node');
}