I found some problems with theming in the module:
- No declaration of the theme_node_editors and theme_node_viewers inside hook_theme()
- Theming functions should use the module's namespace, e.g. theme_modulename_xyz()
- Theming functions should return HTML only (these returned an array element for $node->content)
This patch aims to fix this.
| Comment | File | Size | Author |
|---|---|---|---|
| coherent_access_theming.patch | 3.19 KB | janusman |
Comments
Comment #1
MGN commentedThe patch looks good.
Is there a purpose for the space after the spans?
Other than that, I think this is a real improvement and helps to bring the module in line with expectations.
I've applied the patch and tried it out and haven't found any problems.
Comment #2
janusman commentedNo purpose in space after spans other than... uhm... spacing =)
Comment #3
janusman commentedFixed typo in issue title.