Context Callback

Component type

module

Categories

Maintenance status

Development status

Downloads

1153

Component created

Component changed

A small module to allow your own callbacks for activating and reacting to contexts (context module). No need to write a context-plugin; this module provides a simple hook to register the callbacks and/or reactions that will be picked up by context.

Installation

Context Callback can be installed like any other Drupal module: place it in the modules directory for your site and enable it on the `admin/modules` page.

Debug Bar

Component type

module

Categories

Maintenance status

Development status

Component created

Component changed

Debugging in Drupal has never been easier

Debug Bar displays a debug bar in the browser with information from PHP using PHP Debug Bar.
No more var_dump() in your code!

Requirements

  • Composer (in order to locally install PHP Debug Bar)

Installation

  • Download the module as usual - don't enable it yet
  • cd to the module directory
  • Install PHP Debug Bar: $ php composer.phar install
  • Enable the module

The Debug Bar should now appear in the bottom area of the website.

Notice

Since this is still a sandbox project, download it with Git

$ git clone --branch master http://git.drupal.org/sandbox/jfhovinne/2132181.git debug_bar

Usage

Message log

In order to inspect a variable, log a message, etc, use debug_bar_add_message in your code.

global $user;
debug_bar_add_message($user);

TBox

Component type

module

Categories

Maintenance status

Development status

Component created

Component changed

Modal region that can be switched on / off, containing tools (links, forms, widgets...) to aid developers (or other roles) in their daily tasks.

Module Weight Prefix

Component type

module

Categories

Maintenance status

Development status

Component created

Component changed

Automatically set a custom value for the module weight of all modules that match a target prefix and have not set their own module weight.

This module makes it very easy to have all your custom code run after contrib provided you stick to same namespace for all your custom modules.

Instance settings

Component type

module

Maintenance status

Development status

Downloads

929

Component created

Component changed

Idea behind this module is to have settings for each instance of the site separated, including multi-site setups. It allows to enable/disable modules (with support of module pools, allowing only one module from each pool to be enabled) and set variables based on settings defined in settings.php files.

Settings can be applied on each page load or using drush command, based on module settings.

All config is done ONLY through settings.php files, allowing us to achieve "loose coupling" of modules.

Role CSS & JS Aggregation

Component type

module

Maintenance status

Development status

Component created

Component changed

Drupal's CSS & JS aggregation can cause database deadlock in the variable table under heavy load, this will bring your site to its knees.

This module allows you to disable aggregation for any user with-out a specific role. The idea being that after a release you can serve un-aggregated css and js files until you warm the aggregation cache with a tiny fraction of your normal traffic levels, avoiding the row contention issues that lead to deadlock.

Developer console

Component type

module

Categories

Maintenance status

Development status

Component created

Component changed

My replacement for huge and clumsy devel ;)

Allows to execute PHP code and database queries, provides dumper function with Kint library integration and output type parameters for Drupal 7 & 8, execution time information and much more.

Usefull for development, testing and optimisation, especially when Drush is not accessible.
Security provided by Drupal permissions system and in-code IP recognition from allowed IPs array.

Very lightweight and totally sufficient for skilled developers.