You are here

function purr_messages_help in Purr Messages 6

Same name and namespace in other branches
  1. 8.2 purr_messages.module \purr_messages_help()
  2. 6.2 purr_messages.module \purr_messages_help()
  3. 7.2 purr_messages.module \purr_messages_help()
  4. 7 purr_messages.module \purr_messages_help()

Implementation of hook_help(). Display some help to ensure the jquery files are downloaded into the right place

File

./purr_messages.module, line 49
Purr Messages A jQuery based override of Drupal's core message system

Code

function purr_messages_help($path, $arg) {
  if ($path == 'admin/settings/purr') {
    if (module_exists('libraries')) {
      if (!file_exists(libraries_get_path('jquery_purr/jquery.purr.js'))) {
        return t('<strong>jQuery file status:</strong>
          You need to download the Purr jquery file from
          <a href="http://jquery-purr.googlecode.com/files/jquery-purr0-1-0.zip">
          http://jquery-purr.googlecode.com/files/jquery-purr0-1-0.zip</a>.<br/>
          Decompress it and put just the jquery.purr.js file inside a directory
          called jquery_purr in your !libraries path. For example the final path
          could be: /sites/all/libraries/jquery_purr/jquery.purr.js', array(
          '!libraries' => l('Libraries', 'http://drupal.org/project/libraries'),
        ));
      }
      else {
        return t('<strong>jQuery file status:</strong> The jquery file is in place.');
      }
    }
    else {
      return t('You must install the <a href="http://drupal.org/project/libraries">Libraries API</a>');
    }
  }
}