Alter exposed form with jquery

Let's say you have an exposed form with a units dropdown containing a variety of units, eg Klometers, Meters, Miles, Yards and Nautical Miles but you really only want Kilometers and Meters, here's how:
In a bespoke module (or your theme) you need some javascript enabled, in this example we will call it "myhelper".


Guardr is a Drupal distribution with a combination of modules and settings to enhance a Drupal application's security and availability to meet enterprise security requirements. While you can easily start a new Drupal site with Guardr, it is recommended that you use Guardr as a base install profile.

Guardr follows the CIA information security triad: confidentiality, integrity and availability. From Wikipedia:

Well Formed Errors Initiative

Let's face it - Drupal's errors can be downright cryptic, especially when it isn't Drupal but PHP raising the error through calls to functions on non-objects most of the time. This is an initiative to change that.

Serverside Google geocoding

Getlocations does all it's geocoding clientside (eg in the browser) but there may be times when a developer needs to do some geocoding serverside, here are a couple of functions to help with that:

Single Page Apps documentation


  • Developers need to have the ability to contribute to the Drupal application, without the requirement of knowing Drupal development.
  • Many apps exist that don't need to be duplicated within Drupal's codebase, and can run as-is without a dedicated server component. Drupal can simply deploy a version of those apps and host the content within it's server.


  • SPA developer - The creator of the external single page app

Composer Manager for Drupal 8

Important: Composer Manager before 8.x-1.0-beta1 used the same approach as the Drupal 6 and Drupal 7 versions. Consult those pages if using one of the 8.x-1.0 alphas.

Composer requires a Drupal site to have a single composer.json file and vendor/ directory.
Drupal 8 already ships with its own composer.json and vendor/ directory, so Composer Manager modifies core/composer.json, causing additional requirements to be downloaded into core/vendor.


Subscribe with RSS Subscribe to RSS - No known problems