You are here

function beautytips_ui_include_hook in BeautyTips 8

Same name and namespace in other branches
  1. 6.2 beautytips_ui.module \beautytips_ui_include_hook()
  2. 7.2 beautytips_ui.module \beautytips_ui_include_hook()

Determine whether an include implements a hook, cf. module_hook.

Parameters

$tooltip: The name of the tooltip file (without the .inc extension), such as 'youtube' or 'google'.

$hook: The name of the hook (e.g. "thumbnail", "settings", etc.).

Return value

TRUE if the tooltip is loaded and the hook is implemented.

1 call to beautytips_ui_include_hook()
beautytips_ui_include_invoke in beautytips_ui/beautytips_ui.module
Invoke hook in a particular include.

File

beautytips_ui/beautytips_ui.module, line 66
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_hook($module, $tooltip, $hook) {
  return function_exists($module . '_' . $tooltip . '_' . $hook);
}