diff options
-rw-r--r-- | imagecache_auto.admin.inc | 9 | ||||
-rw-r--r-- | imagecache_auto.inc | 4 | ||||
-rw-r--r-- | imagecache_auto.info | 1 | ||||
-rw-r--r-- | imagecache_auto.module | 12 |
4 files changed, 13 insertions, 13 deletions
diff --git a/imagecache_auto.admin.inc b/imagecache_auto.admin.inc index c820c14..29b0fa7 100644 --- a/imagecache_auto.admin.inc +++ b/imagecache_auto.admin.inc @@ -1,8 +1,6 @@ <?php - /** * @file - * * Administration page callbacks. */ @@ -18,7 +16,7 @@ function imagecache_auto_admin_settings() { '#title' => t('Maximum preset width (pixels)'), '#default_value' => variable_get('imagecache_auto_max_width', '10000'), '#size' => 10, - '#maxlength' => 64, + '#maxlength' => 64, '#description' => t('The maximum width an automatically created ImageCache preset can have.'), ); @@ -27,7 +25,7 @@ function imagecache_auto_admin_settings() { '#title' => t('Maximum preset height (pixels)'), '#default_value' => variable_get('imagecache_auto_max_height', '10000'), '#size' => 10, - '#maxlength' => 64, + '#maxlength' => 64, '#description' => t('The maximum height an automatically created ImageCache preset can have.'), ); @@ -36,9 +34,10 @@ function imagecache_auto_admin_settings() { '#title' => t('Maximum number of presets'), '#default_value' => variable_get('imagecache_auto_max_presets', '250'), '#size' => 10, - '#maxlength' => 64, + '#maxlength' => 64, '#description' => t('The maximum number of total imagecache presets before ImageCache auto refuses to create additional presets. This might prevent abuses from malicious clients.'), ); return system_settings_form($form); } + diff --git a/imagecache_auto.inc b/imagecache_auto.inc index ef751a7..78c5751 100644 --- a/imagecache_auto.inc +++ b/imagecache_auto.inc @@ -1,5 +1,4 @@ <?php - /** * @file * ImageCache functions. @@ -79,7 +78,7 @@ function imagecache_auto_delete_preset($options) { } else { $name = $options['width'] .'x'. $options['height']; - } + } // Check if preset exists. $preset = imagecache_preset_by_name($name); @@ -140,3 +139,4 @@ function imagecache_auto_count_presets() { $count = db_fetch_object($result); return $count->count; } + diff --git a/imagecache_auto.info b/imagecache_auto.info index 6d7ded9..5d0cebe 100644 --- a/imagecache_auto.info +++ b/imagecache_auto.info @@ -4,3 +4,4 @@ core = 6.x package = ImageCache version = "6.x-0.1" dependencies[] = imagecache + 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); } + |