isEnabled(); * * * // Checks whether lazy-load is disabled for the current path. * // Returns a boolean value. * $disabled_paths = '/blog/feed'; * $lazy->isPathAllowed($disabled_paths); */ /** * @addtogroup hooks * @{ */ /** * Alter enabled field formatters for lazy-loading. * * When there's a module offering an image-based field-formatter, * but Lazy-loading doesn't support yet, you can still introduce that image * formatter in your custom module. * * @param array $formatters * Array of field formatters. * * @return array * Returns an array of field formatter names. */ function hook_lazy_field_formatters_alter(array &$formatters) { $formatters[] = 'xyz_module_field_formatter'; return $formatters; } /** * Override the default styles. * * If needed the default styles can be altered via this hook. * * @param string $css * The default CSS styles. */ function hook_lazy_default_styles_alter(&$css) { $css = <<