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

Upload Progress

This module allows you to add a progress bar to any node creation or edit form. You can set the delay before the progress bar appears.

Node Triggers

This module allows you to trigger actions (from the Actions module or any other module that defines actions) when something happens to a node (insertion, update, deletion).

jQuery plugins

The jquery_plugin module provides miscellaneous jQuery plugins, which can be loaded from any module or theme by calling jquery_plugin_add($plugin) in Drupal 6 or drupal_add_library('jquery_plugin', $plugin) in Drupal 7. The Drupal 6 version supports jQ, a jQuery plugin registry.

Rules

The Rules module allows site administrators to define conditionally executed actions based on occurring events (known as reactive or ECA rules).

Example use cases

  • Build flexible content publishing workflows changes
  • Send customized mails to notify your users about important
  • Create custom redirections, system messages, breadcrumbs, ...

And many more...

Photoframe

The purpose of Photoframe is to provide a general API for image-based content wrapping such as rounded corners and drop shadows. The API allows extensible styles, is easy to use, and avoids unnecessary markup.

Photoframe uses jQuery to wrap image-based 'frames' around content after the page has been loaded and is invoked by adding a single CSS style to any element.

Features

  • No javascript coding needed. Just add a single class to any element to wrap the frame around it.
  • Frames load after the page has been loaded, so no extra markup is needed (good for SEO and accessibility)
  • Lots of current Drupal Photoframes are already available for free use, including drop shadows, several versions of rounded corners and picture frames.
  • Lightweight. Just a single jQuery function (of about 10 lines), and a small CSS file for each frame loaded.
  • Simple administration. On the admin page, you can preview each of the frames and select which ones to load.
  • Flexible. Since the frames are image-based, they can be used in a number of different ways.
  • Simple documentation is provided.

Session expire

Expires rows from the session table older than a certain time.

Background

By default, Drupal ships with a session expiration time of just over 23 days, using this directive in settings.php:

ini_set('session.cookie_lifetime',  2000000);

However, for this to work automatically, it requires PHP's garbage collection to be configured correctly.

Since some distributions, e.g. Debian and Ubuntu do not ship with PHP defaults that triggers PHP garbage collection, there is a need to also set the following:

ini_set('session.gc_probability', 1);
ini_set('session.gc_divisor', 100);

This will work, but has some drawbacks:

  • It will be triggered at some random time, rather than at a predictable time.
  • It could slow the response for the unlucky user who happens to trigger it.

So, on sites with a distribution that is not setup as above, or on really busy sites, the sessions table can grow to be very large, and that can cause slow accesses to it, as well as slow writes due to locking, leading to performance bottlenecks.

Pages

Subscribe with RSS Subscribe to RSS - Developer tools