aboutsummaryrefslogtreecommitdiff
path: root/imagecache_auto.module
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2011-11-21 14:06:06 -0200
committerSilvio <silvio@devlet.com.br>2011-11-21 14:06:06 -0200
commit4e6902f5c54d69c351d618a6d8c3273d3b35e3b5 (patch)
tree5be84393a696bb27d1fe21822a0286f4b836ce71 /imagecache_auto.module
parent97adf947afbf8ad31c0c31bc3b3f77098d3e8f4e (diff)
downloadimagecache_auto-4e6902f5c54d69c351d618a6d8c3273d3b35e3b5.tar.gz
imagecache_auto-4e6902f5c54d69c351d618a6d8c3273d3b35e3b5.tar.bz2
More coding standards
Diffstat (limited to 'imagecache_auto.module')
-rw-r--r--imagecache_auto.module12
1 files changed, 6 insertions, 6 deletions
diff --git a/imagecache_auto.module b/imagecache_auto.module
index b25028a..47a3690 100644
--- a/imagecache_auto.module
+++ b/imagecache_auto.module
@@ -1,5 +1,4 @@
<?php
-
/**
* @file
* ImageCache Auto.
@@ -8,7 +7,7 @@
*/
/**
- * Implements hook_menu();
+ * Implements hook_menu()
*/
function imagecache_auto_menu() {
$items = array();
@@ -23,7 +22,7 @@ function imagecache_auto_menu() {
'file' => 'imagecache_auto.admin.inc',
);
- $items[file_directory_path() .'/imagecache_auto'] = array(
+ $items[file_directory_path() . '/imagecache_auto'] = array(
'page callback' => 'imagecache_auto',
'access callback' => TRUE,
'type' => MENU_CALLBACK,
@@ -38,7 +37,7 @@ function imagecache_auto_menu() {
function imagecache_auto() {
include_once('imagecache_auto.inc');
- $max_width = (int) variable_get('imagecache_auto_max_width', '10000');
+ $max_width = (int) variable_get('imagecache_auto_max_width', '10000');
$max_height = (int) variable_get('imagecache_auto_max_height', '10000');
$args = func_get_args();
$options = array(
@@ -59,7 +58,8 @@ function imagecache_auto() {
imagecache_auto_create_preset($options);
// Redirect to the image cache image version.
- $preset = $options['width'] .'x'. $options['height'];
- $path = file_directory_path() .'/imagecache/'. $preset .'/'. $options['path'];
+ $preset = $options['width'] . 'x' . $options['height'];
+ $path = file_directory_path() . '/imagecache/'. $preset . '/' . $options['path'];
drupal_goto($path);
}
+