I am a Permanent Member (or Community Ambassador) of the Drupal Association.I've submitted two new patches to the queue at Drupal.org. The first is a helper function to filter the $tree array that is returned by taxonomy_get_tree. This is useful if you want to get a list of terms at a certain level, or of a certain parent.
The second is a refactoring of the CivicSpace theme's page.tpl.php. It was driving me nuts that the logic for switching between the admin theme and the normal theme was hardcoded in the main page template, so I made a separate admin version of page.tpl.php called page_admin.tpl.php just for the purpose. It shaves a couple KB off the size of the page.tpl.php file and saves 7-8 calls to the function that checks whether or not to show the admin theme. Most of all, it makes both tpl.php files much easier to read since you no longer have to worry whether you're looking at the admin section or not.
Comments
Post new comment