function _filter_lazy_tips in Lazy-load 7
Implements callback_filter_tips().
1 string reference to '_filter_lazy_tips'
- lazy_filter_info in ./
lazy.module - Implements hook_filter_info().
File
- ./
lazy.module, line 149 - Module file for Lazy-load.
Code
function _filter_lazy_tips($filter, $format, $long = FALSE) {
$tags = variable_get('lazy_filter_alter_tag');
$tags = implode(' ', $tags);
$tags = trim(str_replace(array(
'0',
), '', $tags));
switch ($tags) {
case 'img iframe':
return t('Both %img and %iframe elements are lazy-loaded.', array(
'%img' => '<img>',
'%iframe' => '<iframe>',
));
case 'img':
return t('%img elements are lazy-loaded.', array(
'%img' => '<img>',
'%iframe' => '<iframe>',
));
case 'iframe':
return t('%iframe elements are lazy-loaded.', array(
'%img' => '<img>',
'%iframe' => '<iframe>',
));
}
}