$value) { $preset = imagecache_preset_by_name($key); foreach ($omit as $i) { unset($preset[$i]); } $items[$key] = $preset; } $code = " \$items = ". features_var_export($items, ' ') .";\n"; $code = ' return $items;'; return array('imagecache_default_presets' => $code); }