You are here

function hook_emfield_providers in Embedded Media Field 6.3

Same name and namespace in other branches
  1. 6 hooks/emfield.php \hook_emfield_providers()
  2. 6.2 hooks/emfield.php \hook_emfield_providers()

Build a list of provider files that serve the invoking module.

Parameters

$module: The contributed Embedded Media Field module in question, such as Embedded Video Field or Embedded Google Wave. @param $provider If provided, then we expect the single provider file named. Otherwise, we expect an array of all provider files supported. @return A listing of files built with drupal_system_listing().

1 invocation of hook_emfield_providers()
emfield_system_list in deprecated/emfield-deprecated.inc
Return an array of installed .inc files and/or loads them upon request. This routine is modeled after drupal_system_listing() (and also depends on it). It's major difference, however, is that it loads .inc files by default.

File

hooks/emfield.php, line 192
Document various hooks for Embedded Media Field.

Code

function hook_emfield_providers($module, $provider = NULL) {
  return drupal_system_listing("{$provider}\\.inc\$", drupal_get_path('module', 'media_example') . "/providers/{$module}", 'name', 0);
}