public function dsDisplay::regionRemoveAttr in Display Suite 6.3
Remove an attribute from a region
1 call to dsDisplay::regionRemoveAttr()
- dsDisplay::render in includes/
dsDisplay.php - Render content
File
- includes/
dsDisplay.php, line 604 - Class definition for a Display Suite Display object
Class
- dsDisplay
- The Display Suite Display object
Code
public function regionRemoveAttr($region, $type, $match) {
if (isset($this->regions[$region]['#attributes'][$type]) && is_array($this->regions[$region]['#attributes'][$type])) {
foreach ($this->regions[$region]['#attributes'][$type] as $index => $value) {
if ($match == $value) {
unset($this->regions[$region]['#attributes'][$type][$index]);
}
}
}
}