leaflet_views.install 354 B

12345678910111213141516
  1. <?php
  2. /**
  3. * @file
  4. * Install functions for leaflet_views.
  5. */
  6. /**
  7. * Add the Entity API module as a dependency.
  8. */
  9. function leaflet_views_update_7000() {
  10. // Enable entity.
  11. if (!module_enable(array('entity'))) {
  12. throw new DrupalUpdateException('This version of Leaflet Views requires Entity API (entity), but it could not be enabled.');
  13. }
  14. }