kkaefer at gmail.com
Fri Jun 8 18:37:26 UTC 2007
Drupal.t(), Drupal.formatPlural() and Drupal.theme(). The usage of
these functions is pretty much like their server side equivalent.
in Drupal.t() calls, just like you wrap t() around them in PHP code.
is pretty simple (just several bytes), yet rather powerful. If you
a theme function in the Drupal.theme.prototype namespace. Themes can
override these default theme functions by adding a function to the
Drupal.theme namespace. These theme functions can for example be
placed in the script.js file in the modules root directory. This file
is now automatically added to the page (if present), just like
string, an array of jQuery objects, a regular expression etc. It is
advised to return an object (= array with indexes) of jQuery objects,
so that the actual module code can easily determine which objects to
Thanks to Gábor who continuosly reviewed this patch and brought it to
a rtbc state.
Konstantin Käfer – http://kkaefer.com/
More information about the development