You are here

function _gmap_style_bubbles_format_error in GMap Module 7.2

A helper function to format the missing library error message.

This message is called during install and when loading the gmap configurarion page in the case that the infobubble/src/infobubble-compiled.js file isn't found.

Related topics

2 calls to _gmap_style_bubbles_format_error()
gmap_style_bubbles_form_gmap_admin_settings_alter in gmap_style_bubbles/gmap_style_bubbles.module
Implements hook_form_FORM_ID_alter().
gmap_style_bubbles_requirements in gmap_style_bubbles/gmap_style_bubbles.install
Implements hook_requirements().

File

gmap_style_bubbles/gmap_style_bubbles.module, line 188
Adds the more options for theming the gmap popup bubble.

Code

function _gmap_style_bubbles_format_error($library) {
  $t = get_t();
  return $t('You need to download the !infobubble and extract the entire contents of the archive into the %path directory on your server. Only the src folder is required. Final path should be %path/infobubble/src/infobubble-compiled.js', array(
    '!infobubble' => l($t('infobubble plugin'), $library['download url']),
    '%path' => 'sites/all/libraries',
  ));
}