function image_mobile_codes_path_alter in Mobile Codes 7.2
Implements hook_mobile_codes_path_alter() on behalf of image.module.
File
- includes/
image.inc, line 51 - Image module integration.
Code
function image_mobile_codes_path_alter(&$path, $attributes) {
if (isset($attributes['#preset']->extras['image_style']) && !empty($attributes['#preset']->extras['image_style'])) {
$path = image_style_url($attributes['#preset']->extras['image_style'], $path);
}
}