Cómo se usa imagecache
Submitted by admin on Mar, 03/18/2008 - 16:52
En sites/all/modules/imagecache/
function theme_imagecache($namespace, $path, $alt = '', $title = '', $attributes = NULL) {
$attributes = drupal_attributes($attributes);
$imagecache_path = file_create_url(file_directory_path() .'/imagecache/'. $namespace .'/'. $path);
return '';
}
En template.php
function renacal_imagecache($namespace, $path, $alt = '', $title = '', $attributes = NULL) {
$attributes = drupal_attributes($attributes);
$imagecache_path = file_create_url(file_directory_path() .'/imagecache/'. $namespace .'/'. $path);
if ($namespace=='image250x250') {
}
else {
$imagen='';
}
return $imagen;
}
»
- Inicie sesión o regístrese para enviar comentarios