You are here

public static function TextimageStyles::getList in Textimage 7.3

Get an array of all Textimage styles available.

Return value

array the list of Textimage styles available

File

classes/TextimageStyles.inc, line 58
Textimage - Styles handling class.

Class

TextimageStyles
Styles management class.

Code

public static function getList() {
  $styles = image_styles();
  $list = array();
  foreach ($styles as $style_name => $style_info) {
    if ($style = self::get($style_name)) {
      $list[] = $style;
    }
  }
  return $list;
}