You are here

function _lazyloader_icon_path in Image Lazyloader 7

Same name and namespace in other branches
  1. 7.2 lazyloader.module \_lazyloader_icon_path()

Helper function to get the loading icon.

1 call to _lazyloader_icon_path()
lazyloader_page_build in ./lazyloader.module
Implements hook_page_build().

File

./lazyloader.module, line 224
Lazyloader Module

Code

function _lazyloader_icon_path() {
  $icon = variable_get('lazyloader_icon', LAZYLOADER_ICON);
  if (!empty($icon)) {
    $base = base_path();
    $path = drupal_get_path('module', 'lazyloader');
    return "{$base}{$path}/loader/loader-{$icon}.gif";
  }
  return '';
}