You are here

function emfield_include_invoke in Embedded Media Field 5

Same name and namespace in other branches
  1. 6.3 deprecated/emfield-deprecated.inc \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.

11 calls to emfield_include_invoke()
emfield_emfield_widget in ./emfield.module
emfield_emfield_widget_settings in ./emfield.module
Widgets *
emfield_parse_embed in ./emfield.module
This will parse the url or embedded code pasted by the node submitter. returns either an empty array (if no match), or an array of provider and value.
emfield_settings in ./emfield.module
Callback for admin/content/emfield
emimport_import in contrib/emimport/emimport.module

... See full list

File

./emfield.module, line 950

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;
}