You are here

function imagecache_insert_content in Insert 6

Implementation of hook_insert_content().

File

includes/imagecache.inc, line 25
Insert support for ImageCache module.

Code

function imagecache_insert_content($item, $style, $widget) {
  $preset_name = preg_replace('/^imagecache_/', '', $style['name']);
  return theme(array(
    'imagecache_insert_image__' . str_replace('-', '_', $preset_name),
    'imagecache_insert_image',
  ), $item, $widget, $preset_name);
}