You are here

function lazyloader_theme_registry_alter in Image Lazyloader 7

Same name and namespace in other branches
  1. 8 lazyloader.module \lazyloader_theme_registry_alter()
  2. 7.2 lazyloader.module \lazyloader_theme_registry_alter()

Implements hook_theme_registry_alter().

File

./lazyloader.module, line 60
Lazyloader Module

Code

function lazyloader_theme_registry_alter(&$theme_registry) {
  if (variable_get('lazyloader_enabled', LAZYLOADER_ENABLED)) {
    $theme_registry['image']['function'] = 'lazyloader_image';
  }
  return $theme_registry;
}