diff options
author | Silvio <silvio@devlet.com.br> | 2011-11-18 15:29:11 -0200 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2011-11-18 15:29:11 -0200 |
commit | 7c275a1f2b3043e057dc6de76b3b050ab8602da7 (patch) | |
tree | bcfefc9054f6404261e58663c4863bdbad40e14b /imagecache_auto.admin.inc | |
parent | 385ba95d9f725fa79ceaca506aa2586eb8a42f89 (diff) | |
download | imagecache_auto-7c275a1f2b3043e057dc6de76b3b050ab8602da7.tar.gz imagecache_auto-7c275a1f2b3043e057dc6de76b3b050ab8602da7.tar.bz2 |
Check if maximum number of presets was reached
Diffstat (limited to 'imagecache_auto.admin.inc')
-rw-r--r-- | imagecache_auto.admin.inc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/imagecache_auto.admin.inc b/imagecache_auto.admin.inc index 4d31bc5..9b8efcb 100644 --- a/imagecache_auto.admin.inc +++ b/imagecache_auto.admin.inc @@ -32,5 +32,14 @@ function imagecache_auto_admin_settings() { '#description' => t('The maximum height an automatically created ImageCache preset can have.'), ); + $form['imagecache_auto_max_presets'] = array( + '#type' => 'textfield', + '#title' => t('Maximum number of presets'), + '#default_value' => variable_get('imagecache_auto_max_presets', '250'), + '#size' => 10, + '#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); } |