function context_admin_get_path in Contextual Administration 7
Same name and namespace in other branches
- 6 context_admin.module \context_admin_get_path()
Return the Drupal base path, the module path, and the file name, all made into a valid full path.
$file - The name of the file we are creating a full path for. $base_path - Boolean (default FALSE) indicator to use the Drupal path $module - (default context_admin) that module that the file belongs to. RETURN: the path to, and including the $file
1 call to context_admin_get_path()
- menu_context.inc in plugins/
task_handlers/ menu_context.inc
File
- ./
context_admin.module, line 42
Code
function context_admin_get_path($file, $base_path = FALSE, $module = 'context_admin') {
$output = $base_path ? base_path() : '';
return $output . drupal_get_path('module', $module) . '/' . $file;
}