protected function Textimage::putInStore in Textimage 7.3
Store image details.
1 call to Textimage::putInStore()
- Textimage::buildImage in classes/
Textimage.inc - Build the image via core image_style_create_derivative() function.
File
- classes/
Textimage.inc, line 754 - Textimage - Textimage class.
Class
- Textimage
- @file Textimage - Textimage class.
Code
protected function putInStore() {
$stored_image = array(
'tiid' => $this->id,
'is_void' => 0,
'style_name' => $this->style ? isset($this->style['name']) ? $this->style['name'] : NULL : NULL,
'uri' => $this->uri,
'effects_outline' => $this->effects,
'image_data' => $this->imageData,
'timer' => $this->timer,
'timestamp' => REQUEST_TIME,
);
try {
drupal_write_record('textimage_store', $stored_image);
} catch (Exception $error) {
drupal_write_record('textimage_store', $stored_image, array(
'tiid',
));
}
}