function emfield_provider_menus in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 deprecated/emfield-deprecated.inc \emfield_provider_menus()
- 6.2 emfield.module \emfield_provider_menus()
File
- ./
emfield.module, line 742 - Embedded Media Field is a CCK-based framework for 3rd party media files.
Code
function emfield_provider_menus($module, $provider = NULL) {
$menus = array();
if ($provider && ($submenus = emfield_include_invoke($module, $provider, 'submenu'))) {
$menus = $submenus;
}
$providers = emfield_system_list($module);
foreach ($providers as $provider) {
if ($submenus = emfield_include_invoke($module, $provider->name, 'emfield_submenu')) {
$menus = array_merge($menus, (array) $submenus);
}
}
return $menus;
}