Just noticed while I was using my autoinsert module that I'm getting a bad path returned from:

      $txtimg_path = textimage_path($preset, $vars[$key], array(), $ext);

However this function I found in theme_textimage_image is fine:

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

Is the original method I used deprecated, or is it broken?

Comments

danielb’s picture

OK another question, is 'textimage_build_image' a new function? If so I can test for it's existence to decide which function to use.

danielb’s picture

Status: Active » Closed (fixed)

I've figured this out. version 1 uses textimage_path, and version 2 uses textimage_build_image (a new function that was not present in version 1)
so I will test for it's existence and use it, with the fallback being the version 1 function.

Deciphered’s picture

Hi Daniel,

Sorry I didn't reply to this, but I haven't had any time to dedicate to Textimage.
When I get some time I'll go through and try to cleanup some of the depreciated functions.

Cheers,
Deciphered.

Deciphered’s picture

Function removed from HEAD, DRUPAL-6--2 and DRUPAL-5--2.