function _breakpoints_filter_styles in Breakpoints 7
array_filter callback.
1 string reference to '_breakpoints_filter_styles'
File
- ./
breakpoints.module, line 891 - Breakpoints @todo: provide button to reload breakpoints from theme
Code
function _breakpoints_filter_styles($var) {
static $exists = NULL;
if (is_null($exists)) {
$exists = module_exists('resp_img') && defined('RESP_IMG_STYLE_PREFIX');
}
if (!$exists) {
return TRUE;
}
return strpos(is_array($var) ? $var['name'] : $var, RESP_IMG_STYLE_PREFIX) !== 0;
}