You are here

public static function TextimageStyles::get in Textimage 7.3

Get a Textimage style by name.

Parameters

string $style_name: style name

Return value

array the $style array enriched with a 'textimage' key where textimage specific data is kept, or NULL if non existing.

8 calls to TextimageStyles::get()
Textimage::styleByName in classes/Textimage.inc
Set the image style, from the style name.
TextimageStyles::delete in classes/TextimageStyles.inc
Delete Textimage style data.
TextimageStyles::exists in classes/TextimageStyles.inc
Check if a Textimage style exists.
TextimageStyles::getList in classes/TextimageStyles.inc
Get an array of all Textimage styles available.
TextimageStyles::getOptions in classes/TextimageStyles.inc
Get an array of Textimage styles for using as select list options.

... See full list

File

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

Class

TextimageStyles
Styles management class.

Code

public static function get($style_name) {
  $style = image_style_load($style_name);
  return self::isTextimage($style) ? $style : NULL;
}