You are here

function emfield_include_invoke in Embedded Media Field 6.3

Same name and namespace in other branches
  1. 5 emfield.module \emfield_include_invoke()
  2. 6 emfield.module \emfield_include_invoke()
  3. 6.2 emfield.module \emfield_include_invoke()

Invoke hook in a particular include.

Parameters

$module: the helper module

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

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

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

Return value

The return value of the hook implementation.

29 calls to emfield_include_invoke()
emfield_content_generate in deprecated/emfield-deprecated.inc
Implementation of Devel module's hook_content_generate().
emfield_handler_argument_provider::title in includes/views/handlers/emfield_handler_argument_provider.inc
Override the behavior of title().
emfield_module_settings in ./emfield.admin.inc
emfield_module_settings in deprecated/emfield-deprecated.admin.inc
emfield_parse_embed in deprecated/emfield-deprecated.inc
This will parse the url or embedded code pasted by the node submitter.

... See full list

File

deprecated/emfield-deprecated.inc, line 593
Functionality to be deprecated from earlier versions of Embedded Media Field.

Code

function emfield_include_invoke() {
  $args = func_get_args();
  $module = array_shift($args);
  $provider = array_shift($args);
  $hook = array_shift($args);
  $function = $module . '_' . $provider . '_' . $hook;
  emfield_system_list($module, $provider);
  return emfield_include_hook($module, $provider, $hook) ? call_user_func_array($function, $args) : NULL;
}