Need to allow for the second function here to be called instead of it exists.

$txtimg_path = textimage_path($preset, $vars[$key], array(), $ext);
$txtimg_path = textimage_build_image('theme', $preset, trim($vars[$key]), array(), $ext);

Also need to trim() the textimage text to avoid problems with newline chars.

Comments

danielb’s picture

Status: Active » Postponed (maintainer needs more info)

Waiting on the response to this
http://drupal.org/node/403212

danielb’s picture

Status: Postponed (maintainer needs more info) » Fixed

went ahead and did some research to solve it myself

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

jboeger’s picture

Danielb, how did you solve this problem?

thanks in advance. - jb

danielb’s picture

I made this function that call instead, and it decides what to do:

<?php

/**
  *  Gets path from appropriate textimage module function.
  */
function textimage_autoinsert_path($preset, $text, $additional, $format) {
  if (function_exists('textimage_build_image')) {
    // version 2 of textimage
    return textimage_build_image('theme', $preset, trim($text), $additional, $format);
  }
  else {
    // version 1 of textimage
    return textimage_path($preset, trim($text), $additional, $format);
  }
}

?>