Closed (duplicate)
Project:
Almanac
Version:
7.x-1.0-beta1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
26 Jan 2011 at 07:24 UTC
Updated:
28 Jan 2011 at 19:06 UTC
The Drupal 7 version calls the theming function directly rather than using theme(). See http://drupal.org/node/224333#hook_theme_render_changes for the changes.
eg:
$block_content .= theme_almanac_block($location, $location_time, $local_sunrise_time, $local_sunset_time,
$moontimes['rise'], $moontimes['set']);
and
$page_content .= theme_almanac_page($location, $location_time, $sunrise_times,
$sunset_times, $moontimes['rise'], $moontimes['set']);
And as a feature request: The tables could also be run though the theme('table') call for doing things the Drupal way. And finally, template file based files would be much nicer than functions for both theming functions.
If I get time I may look at this in the next couple of days.
Comments
Comment #1
nhwebworker commentedThanks for the report.
Comment #2
alan d. commentedPatch is in #1040518: New Drupal 7 version.