You are here

public function StylesDefault::add_effect in Styles 6

Same name and namespace in other branches
  1. 6.2 includes/Styles.inc \StylesDefault::add_effect()

Add an effect to the end of the array.

An effect is an array with at least a 'name' key, which corresponds to the class function to be called during the rendering process. It will usually also contain an array of 'effects' to apply.

File

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

Class

StylesDefault
@file Styles.inc Base class for Styles.

Code

public function add_effect($effect) {
  return $this
    ->push_effect($effect);
}