You are here

function gravatar_help in Gravatar integration 5

Same name and namespace in other branches
  1. 6 gravatar.module \gravatar_help()
  2. 7 gravatar.module \gravatar_help()

Implementation of hook_help().

File

./gravatar.module, line 56
Integrates gravatar service for comment user pictures.

Code

function gravatar_help($section) {
  switch ($section) {
    case 'admin/user/gravatar':
    case 'admin/user/settings':
      module_load_install('gravatar');
      $requirements = gravatar_requirements('runtime');
      if (!empty($requirements['gravatar'])) {
        drupal_set_message(t('Please check the following potential issues: !issues', array(
          '!issues' => $requirements['gravatar']['description'],
        )), 'warning');
      }
      break;
  }
}