No. A 3 line module is not worth its own project and issue queue and such. This module is best posted in the snippets here http://drupal.org/node/23220 See also here http://drupal.org/handbook/customization/php-snippets On Thu, Apr 30, 2009 at 4:15 AM, Pierre Rineau < pierre.rineau@makina-corpus.com> wrote:
Hi folks,
I made a really, really simple module (3 lines and a JS file).
It uses the "title" HTML attribute on text and textarea HTML inputs to display an empty value in the input, which disappear on focus, and re-appear on focus out if input is still empty.
This is simple, I saw something like 10 or 20 different JS implementations; I choosed one of them, (one I saw on Drupal.org's forums), adapted it a bit the JS file to be more coherent with Drupal6.
The real module just does a "drupal_add_js()" in hook_init() (which should be compatible with aggressive caching).
Do you think this is a good idea to commit it in the Drupal CVS, as a new project?
Or do you known some modules which already does the same thing, in a better way?
Regards, Pierre.
-- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci