function finder_inc_path in Finder 6
Same name and namespace in other branches
- 7 finder.module \finder_inc_path()
Returns the path to a module's includes directory according to finder's naming convention.
Finder's naming convention suggests includes be put in a directory called 'includes' within the module's directory.
Parameters
$module: The name of the module.
3 calls to finder_inc_path()
- finder_menu in ./
finder.module - Implementation of hook_menu().
- finder_theme in ./
finder.module - Implementation of hook_theme().
- finder_views_views_api in modules/
finder_views/ finder_views.module - Implementation of hook_views_api().
File
- ./
finder.module, line 1301 - The finder module.
Code
function finder_inc_path($module = 'finder') {
static $inc_path;
if (empty($inc_path[$module])) {
$inc_path[$module] = drupal_get_path('module', $module) . '/includes';
}
return $inc_path[$module];
}