Considered feature-complete by its maintainers.

Variable JS

This module exposes all variables defined with Variable API to JavaScript API.

Usage

  1. Checkout and enable module
  2. In hook_variable_info() define your variables to be exportable to JavaScript
  3. Access your variables from Javascript with code like:
    Drupal.settings.variable_js.variableName (note that changes will not persist).

Example handler


function mymodule_variable_info() {

  $variables = array();
  $variables['mymodule_info'] = array(
    'title' => t('Info text'),
    'description' => t('Sample variable with information'),
    'type' => 'string',
    'token' => TRUE,
    'multidomain' => TRUE,
    'js' => TRUE,
  );
return $variables;
}

Example JavaScript usage

function($) { 
  Drupal.behaviors.mymodule_test = {
		attach : function(context) {
                        alert(Drupal.settings.variable_js.mymodule_info);
		}
	}
})(jQuery);

Note: examples were not tested on animals ;-).

Dependencies

Requires Variable.

To do

Some ideas for improvement:

  1. Allow exporting to JS of variables from GUI (add a checkbox in variable GUI that enables any variable to be exportable to JS)

audio.js

audio.js

The audio.js modules provides a cross browser audio player as a field formatter for the file field type using the audio.js javascript library created by Anthony Kolber.
http://kolber.github.com/audiojs/

It uses the native HTML5 tag where available and an invisible flash player to emulate the tag for other browsers. It provides a consistent html player UI to all browsers which can be styled with custom css. Under your content types display settings you can select it as either a single player or playlist as the field format.

Browser Support

With Flash as a fallback, it should work pretty much anywhere with just a mp3 file.
It has been verified to work across:
Mobile Safari (iOS 3+)
Android (2.2+, w/Flash)
Safari (4+)
Chrome (7+)
Firefox (3+, w/ Flash)
Opera (10+, w/ Flash)
IE (6, 7, 8, w/ Flash)

Note that the audio.js library currently supports MP3 audio only.

Installation

You must first download the audio.js library here:
http://kolber.github.com/audiojs/

Extract the audiojs archive and copy the contents into your Drupal
libraries directory, so that the audio.min.js file can be found at
sites/all/libraries/audiojs/audiojs/audio.min.js

Co-Maintainer Needed

Block Class Select

Block Class Select enhances the functionality provided by Block Class to make setting block styles easier for less technical users

Accessible Youtube Field

Extend YouTube field with accessible controls that you can use with the keyboard. This is needed if you want to pass several accessibility guidelines.

Regcheck

Regcheck is a super lightweight and simple module that adds a hidden checkbox on the user registration form, and kills the registration process if it is checked.

Apache Solr Filefield

This module enables the indexing of the contents of file in a File field along with the entity it is attached to in the Apache Solr search index.

Pages

Subscribe with RSS Subscribe to RSS - Maintenance fixes only