ctools.inc in Textimage 7.2
Chaos Tools module integration.
File
includes/ctools.incView source
<?php
/**
* @file
* Chaos Tools module integration.
*/
/**
* Implements hook_ctools_export_list().
*/
function textimage_ctools_export_list() {
$presets = array();
foreach (textimage_get_presets() as $preset) {
$presets[$preset->name] = $preset->name;
}
return $presets;
}
/**
* Implements hook_ctools_export_load().
*/
function textimage_ctools_export_load($name) {
$preset = (object) _textimage_preset_load($name);
unset($preset->pid);
return $preset;
}
Functions
Name | Description |
---|---|
textimage_ctools_export_list | Implements hook_ctools_export_list(). |
textimage_ctools_export_load | Implements hook_ctools_export_load(). |