You are here

function gmap_style_bubbles_requirements in GMap Module 7.2

Implements hook_requirements().

Ensures the infobubble library is installed.

File

gmap_style_bubbles/gmap_style_bubbles.install, line 27
Install, update, and uninstall functions for the gmap_style_bubbles module.

Code

function gmap_style_bubbles_requirements($phase) {
  $requirements = array();
  if ($phase == 'runtime') {
    $t = get_t();
    $library = libraries_detect('infobubble');
    if (empty($library['installed'])) {
      $requirements['infobubble_plugin'] = array(
        'title' => $t('Infobubble Plugin Required'),
        'severity' => REQUIREMENT_ERROR,
        'description' => _gmap_style_bubbles_format_error($library),
        'value' => '',
      );
    }
  }
  return $requirements;
}