Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

directly call $module_hook _lookup_path instead of module_hook #57

Open
hefox opened this issue Dec 8, 2012 · 1 comment
Open

directly call $module_hook _lookup_path instead of module_hook #57

hefox opened this issue Dec 8, 2012 · 1 comment

Comments

@hefox
Copy link

hefox commented Dec 8, 2012

module_hook adds excessive function_exists

@hefox
Copy link
Author

hefox commented Dec 8, 2012

Don't know how patch workflow works on github :-/

--- a/includes/path.inc
+++ b/includes/path.inc
@@ -57,7 +57,8 @@ function drupal_lookup_path($action, $path = '', $path_language = '') {
}

if ($hook_module !== FALSE) {

  • $retval = module_invoke($hook_module, 'lookup_path', $action, $path, $path_language);
  • $function = $hook_module . '_lookup_path';
  • $retval = $function($action, $path, $path_language);
    } else {
    $retval = _drupal_lookup_path_direct($action, $path, $path_language);
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant