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

element themehook

Part of the core Drupal API (originally part of the forms API, but also used for rendering structured content that isn't a form) is the drupal_render function.

Views Rotator

Note: There are way too many modules that do "fancy jquery effects in Views". It's like the textbook case of module duplication. I have therefore decided to deprecate this module in favor of Views Slideshow, which has an order of magnitude more users and a much more active maintainer. I will continue to support bug fixes on the current release, but there will be no new feature development and no Drupal 7 version. All users are recommended to migrate to Views Slideshow, either now or as part of Drupal 7 migrations.

The Views Rotator module provides a Views style plugin to display items by rotating through the items displaying one at a time. The cycling of images happens via JavaScript (jQuery) with a number of configurable options.

SQL Cron

SQL Cron is a Drupal module that allows you to create and manage a set of SQL statements that are executed during cron runs.

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.

Pages

Subscribe with RSS Subscribe to RSS - Developer tools