function ds_clean_attributes in Display Suite 6.3
Given an array of attributes, convert it to a string suitable for use in a theme function
Parameters
$attributes: An array of attributes keyed by attributes name
2 calls to ds_clean_attributes()
- dsDisplay::displayFinalise in includes/
dsDisplay.php - Complete any last minute items before rendering
- dsDisplay::regionFinalise in includes/
dsDisplay.php - Finalise a region for rendering
File
- ./
ds.module, line 845
Code
function ds_clean_attributes($attributes) {
// Collect attribute information
foreach ($attributes as $key => $attr) {
if (is_array($attr)) {
$attributes[$key] = implode(' ', $attributes[$key]);
}
}
return ' ' . drupal_attributes($attributes);
}