function emfield_include_hook in Embedded Media Field 6.3
Same name and namespace in other branches
- 5 emfield.module \emfield_include_hook()
- 6 emfield.module \emfield_include_hook()
- 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 deprecated/
emfield-deprecated.inc - Invoke hook in a particular include.
File
- deprecated/
emfield-deprecated.inc, line 575 - Functionality to be deprecated from earlier versions of Embedded Media Field.
Code
function emfield_include_hook($module, $provider, $hook) {
return function_exists($module . '_' . $provider . '_' . $hook);
}