You are here

function emfield_include_hook in Embedded Media Field 5

Same name and namespace in other branches
  1. 6.3 deprecated/emfield-deprecated.inc \emfield_include_hook()
  2. 6 emfield.module \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.

4 calls to emfield_include_hook()
emfield_include_invoke in ./emfield.module
Invoke hook in a particular include.
emimport_import in contrib/emimport/emimport.module
emimport_settings in contrib/emimport/emimport.module
callback page for /admin/content/emfield/import.
emimport_types_allowing_import in contrib/emimport/emimport.module
this returns a list of content types that are allowed to import media sets, and that have providers allowing that

File

./emfield.module, line 932

Code

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