You are here

leaflet_views.install in Leaflet 7

Install functions for leaflet_views.

File

leaflet_views/leaflet_views.install
View source
<?php

/**
 * @file
 * Install functions for leaflet_views.
 */

/**
 * Add the Entity API module as a dependency.
 */
function leaflet_views_update_7000() {

  // Enable entity.
  if (!module_enable(array(
    'entity',
  ))) {
    throw new DrupalUpdateException('This version of Leaflet Views requires Entity API (entity), but it could not be enabled.');
  }
}

Functions

Namesort descending Description
leaflet_views_update_7000 Add the Entity API module as a dependency.