This project is not covered by Drupal’s security advisory policy.

Xu is an evolving set of developer utilities for working with Drupal (like Chaos Tools).

Drupal 7

Xu for Drupal 7 is a PSR-0 compliant library of common functionality. None of the D6 functionality has yet been ported and it is limited and evolving. Ctools is no longer a dependency.

Drupal 6

These are mostly helpful functions which I have found cause to reuse in multiple modules, and are organised into libraries (of functions) and helpers (classes). Individual libraries are documented in the code.

Instantiating a library is as simple as calling xu('library-name');. Libraries are ctools plugin's, so are only loaded when required.

Libraries

Core
block
Save and delete functions for blocks.

form
Includes XuForm, a class for working with Drupal forms (incomplete)

menu
Helpers for working with menu's

system
Helpers for working with the system

theme
Add inline CSS to head

Contrib
ctools and plugin_tools
Set export UI status for exportables, and render plugin information

Others
debug
Debugging functions, including dumping variables, similar to dpm().

error
todo - run level support

Project Information

Downloads