function _textimage_get_variable in Textimage 7.3
Return a 'textimage' configuration variable.
Parameters
string $variable: textimage settings variable to be returned, or NULL to return the entire config.
Return value
string|array value of the requested configuration variable, or the entire array if no variable specified in input
13 calls to _textimage_get_variable()
- TextimageFonts::setHandler in classes/
TextimageFonts.inc - Set font handler.
- TextimageFontsHandlerTextimage::getList in classes/
font_handlers/ textimage.inc - Return an array of fonts.
- TextimageFontsHandlerTextimage::getUri in classes/
font_handlers/ textimage.inc - Return the URI of a font file, given its name.
- TextimageStyles::defaultSettings in classes/
TextimageStyles.inc - Return default setting for Textimage styles.
- textimage_background_effect_form in effects/
textimage_background.inc - Settings for 'textimage_background' image effect.
1 string reference to '_textimage_get_variable'
- _textimage_set_variable in ./
textimage.module - Store a 'textimage' configuration variable.
File
- ./
textimage.module, line 1082 - Textimage - Provides text to image manipulations.
Code
function _textimage_get_variable($variable = NULL) {
$vars =& drupal_static(__FUNCTION__);
if (!isset($vars)) {
$vars = variable_get('textimage', array());
$vars = drupal_array_merge_deep(array(
'store_scheme' => 'private',
'fonts_handling_module' => 'textimage',
'fonts_path' => 'private://textimage_store/fonts',
'default_font' => array(
'name' => '',
'uri' => '',
),
'backgrounds_handling_module' => 'textimage',
'backgrounds_path' => 'private://textimage_store/backgrounds',
'color_selector' => 'textbox',
), $vars);
}
if ($variable) {
return isset($vars[$variable]) ? $vars[$variable] : NULL;
}
else {
return $vars;
}
}