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

Improve documentation lookup command #19

Open
psynaptic opened this issue Jan 14, 2011 · 2 comments
Open

Improve documentation lookup command #19

psynaptic opened this issue Jan 14, 2011 · 2 comments
Labels

Comments

@psynaptic
Copy link
Owner

I noticed the "Documentation for word" command doesn't work for theme functions. I'm not sure how we would solve this.

Example: MODULE_links or THEME_links lookup fails because it's looking for a hook. We need to replace prefix with theme_ or hook_ as necessary but we don't really have any criteria to set of a condition.

@webflo
Copy link
Collaborator

webflo commented Jan 14, 2011

hook is hook and theme is theme.

MODULE_links implements hook_links. THEME_links implements theme_links. There is no problem. We need no prefix replacement.

We should add all theming functions and use the "Documentation for word" for completion and a tab tigger commands for printing. As we have already done it for the hooks.

@psynaptic
Copy link
Owner Author

Except that theme functions can be overridden in a module too. So it could be EXAMPLE_links (where the lookup would be theme_links) or EXAMPLE_init (where the lookup would be hook_init).

If we have all theme functions in the module then sure, we have the criteria for the condition. Maybe we should generate the hooks using drupalcontrib.org?

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

No branches or pull requests

2 participants