You are here

function views_sexy_throbber_requirements in Views Sexy Throbber 7.2

Implements hook_requirements().

File

./views_sexy_throbber.install, line 11
Views Sexy Throbber installation file.

Code

function views_sexy_throbber_requirements($phase) {

  // Create an array to hold Views Sexy Throbber requirements.
  $requirements = array();

  // Get language.
  $t = get_t();

  // Check requirements during the runtime phase.
  if ($phase == 'runtime') {

    // Check if the Views Sexy Throbber plugin library is available.
    if (!module_exists('css3pie')) {
      $requirements['views_sexy_throbber_css3pie'] = array(
        'title' => $t('Views Sexy Throbber IE7 and IE8 Support'),
        'value' => $t('Download and enable the !css3pie module to properly render the "Views Sexy Throber" styles under Microsoft Internet Explorer version 7 and 8. Internet Explorer 9 and newer browsers dont need this.', array(
          '!css3pie' => l($t('CSS3PIE'), 'http://drupal.org/project/css3pie', array(
            'attributes' => array(
              'target' => '_blank',
            ),
          )),
        )),
        'severity' => REQUIREMENT_WARNING,
      );
    }
  }
  return $requirements;
}