You are here

function feedapi_get_natural_name in FeedAPI 5

Same name and namespace in other branches
  1. 6 feedapi.module \feedapi_get_natural_name()

Get the module-defined natural name of FeedAPI parser or processor Define this name in hook_help():

function hook_help($section) { switch ($section) { case 'feedapi/full_name': return t('Natural name'); break; } }

1 call to feedapi_get_natural_name()
feedapi_form_alter in ./feedapi.module
Implementation of hook_form_alter().

File

./feedapi.module, line 774
Handle the submodules (for feed and item processing) Provide a basic management of feeds

Code

function feedapi_get_natural_name($module) {
  $help = $module . '_help';
  $module_natural = function_exists($help) ? $help('feedapi/full_name') : t($module);
  return empty($module_natural) ? t($module) : $module_natural;
}