function resp_img_suffix_load_all_breakpoints in Responsive images and styles 7
Load suffix and breakpoint for all suffixes
4 calls to resp_img_suffix_load_all_breakpoints()
- resp_img_add_js in ./
resp_img.module - Add cookie support, script and settings
- resp_img_expire_cache_alter in ./
resp_img.module - Support for purge/expire module. Specific for nginx / barracuda Clears the cache for anonymous users and for the current user Required changes to nginx config files nginx_speed_purge.conf change fastcgi_cache_purge speed…
- resp_img_get_best_suffix in ./
resp_img.module - Determine best match
- _resp_img_get_suffix in ./
resp_img.module
File
- ./
resp_img.module, line 120
Code
function resp_img_suffix_load_all_breakpoints() {
static $widths = array();
if (empty($widths)) {
$suffixes = resp_img_suffix_load_all();
foreach ($suffixes as $suffix) {
$widths[$suffix->suffix] = (int) $suffix->breakpoint;
}
$widths[variable_get('resp_img_default_suffix', '')] = 1;
arsort($widths);
}
return $widths;
}