Empower developers with tools that assist with developing and debugging the frontend or backend of the site.

Handler

Handlers are objects that are called to "handle" various pieces of an API in a swappable manner.

Handlers implement pluggable subsystems in a flexible, extensible manner.

Handlers solve the "many to one" type of extensibility, just has hooks solve the "one to many" sort.

Handlers are easily unit-testable.

Handlers require PHP 5.2.

Handlers will be demoed at DrupalCon Szeged.

Ajax Controller (AC)

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;

Colophon

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.

Facelift Image Replacement Integration

Example of FLIR in use on a website

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.

Go here for a screencast of using 1.2!!

Flir 2.x Changes

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.

Write up from Flir's website:

Preset Widget Options

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.

Modules using Preset Widget Options include: Creative Commons Widget.

Setup

Preset Widget Options provides two new options for field management and display.

  1. 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.
  2. On the CCK field display settings form, each option handler is available as a display option for text fields.

OpenLaszlo

This module will create an API to allow integration between Drupal and OpenLaszlo, available at http://openlaszlo.org.

Pages

Subscribe with RSS Subscribe to RSS - Developer tools