jQuery Wrapper API

Component type

module

Maintenance status

Development status

Component created

Component changed

This module offers a PHP function that will wrap your inline Javascript for you in the manner described at http://drupal.org/node/171213.

For example, the following PHP code:

$jquery = '$(".title").hide();';
print jquery_wrapper_api_wrap('myNodeTplPhp', $jquery);

prints the following HTML :

Raw Text Formatter

Component type

module

Maintenance status

Development status

Downloads

721

Component created

Component changed

Adds a format option to display the raw (sanitised) value of a CCK text field.

User Cases

Particularly useful in Views, where you can use the key value of a selected option to rewrite fields like this:

<img src="/sites/default/files/icons/[field_level_value].png" alt="Level" />

[field_level_value] is set to the Raw Text format and fills in the filename of the icon that matches the option selected.