You are here

function asset_embed_invoke in Asset 5

Same name and namespace in other branches
  1. 6 asset_embed/asset_embed.module \asset_embed_invoke()

Invoke a provider method.

4 calls to asset_embed_invoke()
asset_embed_asset_formatter in asset_embed/asset_embed.module
asset_embed_asset_settings in asset_embed/asset_embed.module
asset_embed_extract_id in asset_embed/asset_embed.module
asset_embed_list_providers in asset_embed/asset_embed.module
return a list of available providers

File

asset_embed/asset_embed.module, line 14
Asset Embed Module

Code

function asset_embed_invoke() {
  $args = func_get_args();
  $provider = array_shift($args);
  $hook = array_shift($args);
  $function = 'asset_embed_' . $provider . '_' . $hook;
  if (function_exists($function)) {
    return call_user_func_array($function, $args);
  }
  return false;
}