Maintainers monitor issues, but fast responses are not guaranteed.

Views Term Path

Views field handler for display taxonomy term path.

Based on views_handler_field_node_path field handler.

Search exclude node

Overview

A simple method of excluding a node from core search results.

jVectorMap API

Basic jVectorMap

SUMMARY

This jVectorMap module is a simple libraries API wrapper for the super cool jVectorMap jQuery JavaScript library. It provides all the wiring to start creating maps in your drupal website.

Please refer to http://jvectormap.com/ for a more full descripton of jVectorMap.

REQUIREMENTS

INSTALLATION

  • Install library as usual, for further information see https://drupal.org/node/1440066.
  • The JavaScript & CSS files library files should have the version number removed i.e. jquery-jvectormap-1.2.2.min.js => jquery.jvectormap.min.js.

API

Example #1

    // file: myModule.module
    $form['default-world-map'] = array(
      '#theme' => 'jvectormap',
    );
    // file: myModule.js
	(function ($) {
      Drupal.behaviors.example = {
        attach: function (context, settings) {
          $('div#jvectormap-auto-identifier-0').vectorMap();
        }
      };
    })(jQuery);

Example #2

    // file: myModule.module
    $form['custom-map'] = array(
      '#theme' => 'jvectormap',
      '#attributes' => array(
        'id' => 'custom-world-map', // Optional as one will get auto-generated.
        'style' => 'width:300px;height:200px', // Optional - default size 600x400.
      ),
      // Optional as it defaults to jquery-jvectormap-world-mill-en.js
      // if it exists in jvectormap libraries folder.
      '#map_path' => drupal_get_path('module', 'example') . '/js/custom_world_en.js',
    );
    // file: myModule.js
    (function ($) {
      Drupal.behaviors.example = {
        attach: function (context, settings) {
          $('div#custom-world-map').vectorMap({
            map: 'custom_world_en',
          });
        }
      };
    })(jQuery);

FAQ

Q: Why isn't it working? No map renders and the map JavaScript file gives error:

Telephone

Backport of the Drupal 8 core 'telephone' module as an future-proof alternative to the Phone module.

Region Class

Region Class is a very simple module. It allows to assign CSS classes to regions on the theme-settings page.

Pages

Subscribe with RSS Subscribe to RSS - Minimally maintained