You are here

function imagecache_preset_title_callback in ImageCache 6.2

1 string reference to 'imagecache_preset_title_callback'
imagecache_ui_menu in ./imagecache_ui.module
Implementation of hook_menu().

File

./imagecache_ui.module, line 132

Code

function imagecache_preset_title_callback($title, $preset = array(), $action = array()) {
  $replacements = array();
  if (!empty($preset)) {
    $replacements['!presetname'] = $preset['presetname'];
    $replacements['!presetid'] = $preset['presetid'];
  }
  if (!empty($action) && !is_array($action)) {
    $replacements['!actionname'] = $action;
  }
  elseif (!empty($action)) {
    $replacements['!action'] = $action['action'];
  }
  return t($title, $replacements);
}