public static function TextimageStyles::delete in Textimage 7.3
Delete Textimage style data.
Parameters
array $style: the style being deleted
1 call to TextimageStyles::delete()
- textimage_image_style_delete in ./
textimage.module - Implements hook_image_style_delete().
File
- classes/
TextimageStyles.inc, line 199 - Textimage - Styles handling class.
Class
- TextimageStyles
- Styles management class.
Code
public static function delete($style) {
// Clear store.
db_delete('textimage_store')
->condition('style_name', $style['old_name'], '=')
->execute();
// Change style in fields, if a new textimage style is indicated.
if ($style['name']) {
if (self::get($style['name'])) {
self::save($style, TRUE);
}
}
}