You are here

function _lazyloader_excluded_by_filename in Image Lazyloader 7.2

Helper function to determine if an image should be excluded by filename.

1 call to _lazyloader_excluded_by_filename()
theme_lazyloader_image in ./lazyloader.module
Returns HTML for an image.

File

./lazyloader.module, line 249
Lazyloader Module

Code

function _lazyloader_excluded_by_filename($variables) {
  $excluded_files = preg_split("/\\r\\n|\\r|\\n/", variable_get('lazyloader_excluded_filenames', LAZYLOADER_EXCLUDED_FILENAMES));
  $parts = explode('/', $variables['path']);
  $parts = explode('?', array_pop($parts));
  $filename = array_shift($parts);
  return (bool) in_array($filename, $excluded_files);
}