You are here

function beautytips_ui_include_invoke in BeautyTips 6.2

Same name and namespace in other branches
  1. 8 beautytips_ui/beautytips_ui.module \beautytips_ui_include_invoke()
  2. 7.2 beautytips_ui.module \beautytips_ui_include_invoke()

Invoke hook in a particular include.

Parameters

$module: the helper module

$tooltip: The name of the tooltip (without the .inc extension).

$hook: The name of the hook (e.g. "menu_change", "form_change", etc.).

...: Arguments to pass to the hook implementation.

Return value

The return value of the hook implementation.

5 calls to beautytips_ui_include_invoke()
beautytips_ui_admin_settings in ./beautytips_ui.module
@file Adds includes to Beautytips settings page and provides some built in functionality. TODO: hook_theme invoke - maybe Invoked include hooks: admin_info, menu_change, theme_change, form_change, menu_items ex. beautytips_textinput_info
beautytips_ui_form_alter in ./beautytips_ui.module
Implementation of hook_form_alter. Adds beautytips for textareas and textfields
beautytips_ui_menu in ./beautytips_ui.module
Implementation of hook_menu.
beautytips_ui_menu_alter in ./beautytips_ui.module
Implementation of hook_menu_alter().
beautytips_ui_theme_registry_alter in ./beautytips_ui.module
Implementation of hook_theme_registry_alter().

File

./beautytips_ui.module, line 82
Adds includes to Beautytips settings page and provides some built in functionality. TODO: hook_theme invoke - maybe Invoked include hooks: admin_info, menu_change, theme_change, form_change, menu_items ex. beautytips_textinput_info

Code

function beautytips_ui_include_invoke($module, $hook, $args) {
  $includes = beautytips_ui_include_list();
  foreach ($includes as $tooltip) {
    $function = $module . '_' . $tooltip . '_' . $hook;
    $params[] = beautytips_ui_include_hook($module, $tooltip, $hook) ? call_user_func_array($function, $args) : NULL;
  }
  return $params;
}