Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
database system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Mar 2009 at 17:55 UTC
Updated:
17 Aug 2009 at 19:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
Crell commentedMakes sense to me. But what then do we do when trying to display such data in the admin? Do we just say "well, remember to check_plain() it"? It's the sort of text that one would expect to be safe, since it's not coming from an external source but a module developer, so it doesn't trigger my "don't trust it until you filter it" sensors. You wouldn't think to check_plain something in t() yourself, either.
Do we just document it and hope the few people who will actually access this data will read it? Do we provide an API? Something else? I guess I'm OK with documenting it and punting if the committers are, but it's important to ask the question.
Comment #2
dries commentedI'd just document it. I'm in support of this patch.
Comment #3
Crell commented@OP, can you reroll with appropriate documentation, er, somewhere? :-)
Comment #4
c960657 commentedThe description of hook_schema() in modules/system/system.api.php doesn't go into great detail about the schema definition but instead refers http://drupal.org/node/146939. I suggest adding the following to the explanation of table and field descriptions on that page: “The description is treated as non-markup plain text.”
Comment #5
c960657 commented@Crell, is adding the documentation to the handbook sufficient, or would you like to have it in CVS?
Comment #6
Crell commentedI'd put it in a docblock in the code, and then if we later get better handbook documentation for schema API we include it there as well.
Comment #7
c960657 commentedDone.
Comment #9
c960657 commentedComment #10
webchickNice one! Committed to HEAD.
Comment #11
c960657 commentedI added a mention of this in the upgrade docs:
http://drupal.org/update/modules/6/7#schema_html