This small module provides a simple API and should not be installed unless required by another module, or for your personal development.
Features
Route XMLHttpRequests to mapped callbacks
Option to gzip output
Display status and error messages based on request status
Message display duration
Output messages to specific elements, or the default of #ac-messages
Response headers
Ability to alter responses via hook_js_response_alter()
Lock arbitrary requests to a set duration
Examples
This example utilizes AC.request() to delete a piece of content.
The URI of example.com/js/example/delete will call example_js_delete().
// example.js
AC.request('example', 'delete', { 'content_id' : 1 }, function(response){
// AC.checkResponse() will return TRUE when the response was a success, and also manages
// functionality such as displaying messages.
if (AC.checkResponse(response)){
$('#content-1').remove();
}
});
// example.module
function example_js_delete(&$state, $args) {
// Lock the user for 10 seconds regardless of success, to prevent arbitrary requests
$state['lock'] = 10;
The colophon module shows a list of links for all enabled modules as well as themes used in your Drupal installation to a site visitor when they click on an icon on your page.
Note: This module is no longer being maintained as the FLIR library it's based on appears to be no longer maintained. If you're looking into font solutions I suggest taking a read through this page: http://groups.drupal.org/node/71453
This module integrates the Facelift Image Replacement (Flir) project into Drupal. It provides an administration page that allows you to define the jQuery selector(s) to replace text with images as well as what font to use. If anyone wants to jump in and help expand this project please let me know.
There's a number of changes in the 2.x branch. Flir is now dependent on the libraries module. If you're upgrading from 1.x you'll need to download the flir code from http://facelift.mawhorter.net/ and place it in the libraries folder. The location of the font directory is also no longer in mysite/files/fonts, now they exist in the facelift library by default but can be configured to be anywhere.
Enables custom select options and accompanying display widgets for CCK text fields. Preset Widget Options gives developers a lot of control over the handling and display of fields without having to declare a whole new field type.
This module should be installed only if another module requires it.
Preset Widget Options provides two new options for field management and display.
On the CCK field settings page for text fields, the "PHP code" collapsible fieldset, where site admins may enter custom PHP from which to draw options for selects or radios, is retitled "Advanced options" and given an additional setting, "Options handler". Here any custom options lists defined using Preset Widgets Options are made available.
On the CCK field display settings form, each option handler is available as a display option for text fields.