You are here

function _textimage_load_toolkit_functions in Textimage 7.3

Load Textimage toolkit dependent functions.

2 calls to _textimage_load_toolkit_functions()
textimage_background_effect in effects/textimage_background.inc
Implements 'textimage_background' image effect callback.
_textimage_get_text_wrapper in effects/textimage_text.inc
Get the image containing the text.

File

./textimage.module, line 1232
Textimage - Provides text to image manipulations.

Code

function _textimage_load_toolkit_functions() {

  // Include toolkit specific image functions.
  $toolkit_functions_filename = dirname(__FILE__) . '/effects/textimage_text.' . image_get_toolkit() . '.inc';
  if (is_file($toolkit_functions_filename)) {
    require_once $toolkit_functions_filename;
    return TRUE;
  }
  else {
    $toolkits = image_get_available_toolkits();
    _textimage_diag(t("Textimage does not support the '@toolkit' image toolkit.", array(
      '@toolkit' => $toolkits[image_get_toolkit()],
    )), WATCHDOG_ERROR);
    return FALSE;
  }
}