You are here

function colors_invoke in Colors 7

Wrapper function for module_invoke() providing a fallback.

Parameters

$module: The name of the module.

$hook: The name of the hook to invoke.

Return value

The return value of the hook implementation.

2 calls to colors_invoke()
colors_build_css in ./colors.module
Builds a CSS string based on a selector and a color configuration.
colors_get_color_options in ./colors.module
Gets all the color options.

File

./colors.module, line 401
Provides an API to match selectors with a color configuration.

Code

function colors_invoke($module, $hook) {
  $args = func_get_args();
  if ($module != 'colors' && !module_hook($module, $hook)) {
    $args[0] = 'colors';
  }
  return call_user_func_array('module_invoke', $args);
}