You are here

function jquery_touchpunch_error_message in jQuery UI Touch Punch 7

Helper function. Generatss an error message.

2 calls to jquery_touchpunch_error_message()
jquery_touchpunch_requirements in ./jquery_touchpunch.install
Implements hook_requirements().
jquery_touchpunch_settings_form in ./jquery_touchpunch.admin.inc
Implements hook_requirements().

File

./jquery_touchpunch.module, line 107
jquery_touchpunch.module

Code

function jquery_touchpunch_error_message($error_message, $library) {

  // Use this variable for t() function because this function
  // may be called in .install file.
  $t = get_t();
  return $t('!error You need to download the !library ' . 'and place to \'jquery.ui.touch-punch\' directory in the %path ' . 'directory on your server.', array(
    '!error' => $error_message,
    '!library' => l($library['name'], $library['download url']),
    '%path' => 'sites/all/libraries',
  ));
}