function imagepicker_get_insert_template in Image Picker 7
Same name and namespace in other branches
- 6.2 imagepicker.functions.inc \imagepicker_get_insert_template()
1 call to imagepicker_get_insert_template()
File
- ./
imagepicker.functions.inc, line 3084 - @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function imagepicker_get_insert_template() {
$file = IMAGEPICKER_PATH . DIRECTORY_SEPARATOR . IMAGEPICKER_INSERT_TEMPLATE;
$t = '<div class="imgp_title">__TITLE__</div>__INSERT__<div class="imgp_desc">__DESC__</div>';
$template = '';
if (file_exists($file)) {
$template = file_get_contents($file);
}
if ($template) {
return $template;
}
return $t;
}