You are here

function css_emimage_help in CSS Embedded Images 7

Same name and namespace in other branches
  1. 6.2 css_emimage.module \css_emimage_help()
  2. 6 css_emimage.module \css_emimage_help()

Implements hook_help().

File

./css_emimage.module, line 44
CSS Embedded Images module.

Code

function css_emimage_help($path, $arg) {
  switch ($path) {
    case 'admin/help#css_emimage':
      if (module_exists('advagg')) {
        $config_path = advagg_admin_config_root_path();
        $output = '<p>' . t('Replaces image URLs in AdvAgg aggregated CSS files with embedded images when <em>CSS optimization</em> has been enabled in the <a href="@performance">Performance settings</a>; <a href="@config">configuration for the CSS embedded images</a> module.', array(
          '@performance' => url('admin/config/development/performance'),
          '@config' => url($config_path . '/advagg/css-emimage'),
        )) . '</p>';
      }
      else {
        $output = '<p>' . t('Replaces image URLs in aggregated CSS files with embedded images when <em>CSS optimization</em> has been enabled in the <a href="@performance">Performance settings</a>.', array(
          '@performance' => url('admin/config/development/performance'),
        )) . '</p>';
      }
      return $output;
  }
}