Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
danielb CreditAttribution: danielb commentedOK another question, is 'textimage_build_image' a new function? If so I can test for it's existence to decide which function to use.
Comment #2
danielb CreditAttribution: danielb commentedI'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.
Comment #3
Deciphered CreditAttribution: Deciphered commentedHi 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.
Comment #4
Deciphered CreditAttribution: Deciphered commentedFunction removed from HEAD, DRUPAL-6--2 and DRUPAL-5--2.