function template_preprocess_instagram_block_image in Instagram Block 7
Preprocess variables for instagram-block-image.tpl.php
Provides a default caption to be used as the alt text for an img tag.
See also
File
- ./
instagram_block.module, line 316 - Module file for the instagram_block module.
Code
function template_preprocess_instagram_block_image(&$variables) {
if (!empty($variables['post']->caption->text)) {
$variables['caption'] = check_plain($variables['post']->caption->text);
}
else {
$variables['caption'] = t('Instagram image, no caption provided by author.');
}
}