You are here

public function StylesDefault::arrayUnshift in Styles 7.2

File

includes/Styles.inc, line 168
Styles.inc Base class for Styles.

Class

StylesDefault
@file Styles.inc Base class for Styles.

Code

public function arrayUnshift($variable, $element) {
  $array = (array) $this
    ->_get($variable);
  array_unshift($array, $element);
  return $this
    ->_set($variable, $array);
}