You are here

function emfield_include_hook in Embedded Media Field 6

Same name and namespace in other branches
  1. 5 emfield.module \emfield_include_hook()
  2. 6.3 deprecated/emfield-deprecated.inc \emfield_include_hook()
  3. 6.2 emfield.module \emfield_include_hook()

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

Parameters

$provider: The name of the provider 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 provider is loaded and the hook is implemented.

1 call to emfield_include_hook()
emfield_include_invoke in ./emfield.module
Invoke hook in a particular include.

File

./emfield.module, line 596
Embedded Media Field is a CCK-based framework for 3rd party media files.

Code

function emfield_include_hook($module, $provider, $hook) {
  return function_exists($module . '_' . $provider . '_' . $hook);
}