You are here

function hook_ctools_plugin_post_alter in Chaos Tool Suite (ctools) 7

Alter a plugin after it has been processed.

This hook is useful for overriding the final values for a plugin after it has been processed.

Parameters

array $plugin: An associative array defining a plugin.

array $info: An associative array of plugin type info.

1 invocation of hook_ctools_plugin_post_alter()
_ctools_process_data in includes/plugins.inc
Fill in default values and run hooks for data loaded for one or more plugins.

File

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

Code

function hook_ctools_plugin_post_alter(array &$plugin, array &$info) {

  // Override a function defined by the plugin.
  if ($info['type'] == 'my_type') {
    $plugin['my_function'] = 'new_function';
  }
}