You are here

function leaflet_views_update_7000 in Leaflet 7

Add the Entity API module as a dependency.

File

leaflet_views/leaflet_views.install, line 11
Install functions for leaflet_views.

Code

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.');
  }
}