public static function TextimageStyles::getOptions in Textimage 7.3
Get an array of Textimage styles for using as select list options.
Parameters
bool $include_empty: If TRUE a <none> option will be inserted in the options array.
Return value
array Array of image styles with both key and value set to style name.
2 calls to TextimageStyles::getOptions()
File
- classes/
TextimageStyles.inc, line 78 - Textimage - Styles handling class.
Class
- TextimageStyles
- Styles management class.
Code
public static function getOptions($include_empty = TRUE) {
$image_options = image_style_options($include_empty);
$options = array();
foreach ($image_options as $option => $value) {
if ($option == '') {
$options[$option] = $value;
continue;
}
$style = self::get($option);
if (self::isTextimage($style)) {
$options[$option] = $value;
}
}
return $options;
}