Description keys were removed from the schema cache in Drupal 7. This broke the describe tab which no longer shows any descriptions for tables and fields.

Proposed solution is to get the full schema including descriptions without using drupal_get_schema().

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Antti J. Salminen’s picture

Status: Active » Needs review
FileSize
702 bytes

Here's an attached patch that removes drupal_get_schema() usage and constructs the schema in a way similar to what drupal_get_complete_schema() does.

jneubert’s picture

Worked fine for me - thanks!

Dave Reid’s picture

Moved this to a re-usable function that could be used by all.

Liam Morland’s picture

The comment before the call to _drupal_schema_initialize() needs to be updated.

Liam Morland’s picture

Liam Morland’s picture

greggles’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
4.44 KB

I've rerolled this to updated the comment as suggested by Liam Morland, but it's basically the same as Dave's work.

Moving to RTBC since I only changed the comment.

I also noticed some other issues in the queue that seem to be related and/or dups of this issue, so it seems worthwhile to commit and release soon.

greggles’s picture

Priority: Normal » Major

IMO this is at least major since it affects a pretty basic use of the module.

  • joachim committed 0986c68 on 7.x-1.x authored by Dave Reid
    Issue #1792608 by Antti J. Salminen, greggles, Dave Reid: Fixed table...
joachim’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the reroll!

Committed.

joachim’s picture

This warrants a new release (though it's clearly been broken for ages!). I'll check the issue queue for any low-hanging fruit and make a new release soon.

greggles’s picture

Agreed about a new release. Thanks for your recent work on this module!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.