I now realize the two things are unrelated as far as the actual database structure is concerned, but I certainly made the connection and I assume others would as well that resetting the theme registry (or clearing all caches) should update the theme.info stuff as well. I spent quite a bit of time yesterday trying to get scripts I added to theme.info to show up before someone told me you had to visit the theme settings page. From a usability standpoint, there should be a more logical way to refresh that data that is clearly exposed in the UI, and I think the theme registry reset is the most logical place a parson might expect to find it (unless you add a separate menu item). I created a patch to add system_get_theme_data(); to drupal_theme_rebuild(), but I'm not sure if this is the best approach.

CommentFileSizeAuthor
theme.inc_.patch529 bytesseanr

Comments

seanr’s picture

Issue tags: +Needs design review, +Needs committer feedback
moshe weitzman’s picture

Status: Needs review » Needs work

Good idea. But calling that function does not rebuild anything AFAICT. You want to add a $reset param to both system_get_theme_data() and _system_get_theme_data()

seanr’s picture

Moshe, that function fetches the .info files, parses them, and updates the database. See here:

http://api.drupal.org/api/function/system_get_theme_data/7

That should be sufficient shouldn't it? It appeared to work for me. Otherwise, please let me know what you mean by adding a reset parameter.

catch’s picture

Issue tags: -Needs committer feedback

I don't think this especially needs committer feedback.

catch’s picture

Status: Needs work » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.