Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
theme system
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
21 Oct 2009 at 09:51 UTC
Updated:
13 Mar 2010 at 09:30 UTC
Jump to comment: Most recent file
There are several theming-related functions that aren't on the current docs page: http://api.drupal.org/api/group/themeable/7 Very few of the preprocess/process functions are listed. None of tpls are listed; and I'm not sure if its possible to list the tpls, but I'll try.
Over in #563708: Improve theme_get_setting() and make custom theme settings a true form_alter, Dries requested that we create a theme.api.php file to hold that new theme hook. It would also make sense to move the main themable docs from theme.inc (where it gets parsed on every page load) into this new theme.api.php file.
| Comment | File | Size | Author |
|---|---|---|---|
| #6 | theme-api-php-610408-6.patch | 10.22 KB | johnalbin |
| #5 | theme-api-php-610408-5.patch | 10.23 KB | johnalbin |
| #1 | theme-api-610408-1.patch | 12.23 KB | johnalbin |
Comments
Comment #1
johnalbinThe attached patch is just my work to-date. It needs work.
Comment #2
johnalbinSee related #716496: Theme functions group needs some updates.
Hashing out the best way to tackle these two issue in #drupal-docs right now.
Comment #3
jhodgdonFrom IRC: Make modules/system/theme.api.php, and put the @defgroup for themeable in that file is an OK change.
Comment #4
johnalbinOk. Let's just use this issue to create a new modules/system/theme.api.php file and move some docs over to it.
We can tackle the actual docs wording changes over in #716496: Theme functions group needs some updates. That will make the changes more transparent in CVS history.
Comment #5
johnalbinThis patch:
@ingroup themablefrom the @file docblock at the top of includes/theme.inc. All the functions currently showing on http://api.drupal.org/api/group/themeable/7 are inside the current@defgroup themeableblock, so this @ingroup is not necessary.@defgroup themeablefrom includes/theme.inc to a new modules/system/theme.api.php file.@ingroup hookssection of system.api.php and into the new theme.api.php file.@defgroup themabledefinition in theme.inc, it adds a@addtogroup themeableblock.That's it! All the other changes we need will go in the follow-up issue: #716496: Theme functions group needs some updates
Comment #6
johnalbinReplaced the addtogroup with a ingroup (#4 from comment 5). Otherwise, the same.
Comment #7
jhodgdonThis patch is fine for the "moving stuff around" piece of the puzzle. As noted above, once this patch is in, we'll fix up wording and which functions are listed on #716496: Theme functions group needs some updates.
Comment #8
dries commentedCommitted to CVS HEAD. Thanks.