function bg_image_formatter_preprocess_bg_image_formatter_inline in Background Images Formatter 7.2
Implements hook_preprocess_HOOK().
File
- ./
bg_image_formatter.module, line 26
Code
function bg_image_formatter_preprocess_bg_image_formatter_inline(array &$variables, $hook) {
$element = $variables['element'];
// Ensure #attributes is set.
$element += array(
'#attributes' => array(),
);
$variables['bg_image_formatter_inline_attributes'] = str_replace('%bg-image-formatter-inline%', $element['#style'], drupal_attributes($element['#attributes']));
}