Drupal.behave

Super sexy Drupal JS behaviors.

API in a nutshell

Drupal.behave(...) or $b(...) shorthand

It's a super simple, jQuery like, chainable API.

Before: The Conventional Drupal 7 Way

(function ($) {
  Drupal.behaviors.exampleModule = {
    attach: function (context, settings) {
      $('.myDOM', context).text('Who throws a shoe?!?');
    }
  };
})(jQuery);

After: Yeah, Baby Way!

jQuery is also passed in as the third argument. Yeah, baby!

Downloads

Entity Enqueue

Entity Enqueue provides utility functions to enqueue entities to be processed later using Drupal's Queue API.
It is meant to have matching Drush commands for each possible function.
It is a developer tool, it has no visible UI.

Routing Debug

Simple module that provides menu routing table with additional information like:

  • name of the callback function,
  • filename and path of file where the callback is defined,
  • line number of function definition.

Intention of the module is to help developer to identify potential menu overrides.

Feature toggle

From Wikipedia

A feature toggle, (also feature switch, feature flag, feature flipper, conditional feature, etc.) is a technique in software development that attempts to provide an alternative to maintaining multiple source-code branches (known as feature branches).

http://en.wikipedia.org/wiki/Feature_toggle

This module gives non developers ability to show or hide features created & deployed by developers.

How to create a feature:
In settings.php

Downloads

Commerce Reset

While a site is in development or testing phase we create hundreds orders, transactions and customer profiles.
This module allows you to reset commerce to a near blank slate.

At the moment we only support commerce core.

Features

1. Delete orders and reset order number.
2. Delete payment transactions.
3. Delete customer profiles.
4. Delete product variations.

Basic Installation

1. Download and enable the module.
2. Go to Administration > Store > Commerce reset (admin/commerce/reset/batch).

Downloads

Pages

Subscribe with RSS Subscribe to RSS - Developer