You are here

function resp_img_init in Responsive images and styles 7

Implements hook_init().

File

./resp_img.module, line 25

Code

function resp_img_init() {
  resp_img_add_js();
  if (module_exists('context')) {
    $plugin = context_get_plugin('condition', 'resp_img_context_condition_suffix');
    if ($plugin) {
      $plugin
        ->execute(resp_img_get_best_suffix());
    }
  }
}