From df070a36a81a6ef897a83922f0915e70c2154b2f Mon Sep 17 00:00:00 2001 From: Silvio Date: Wed, 20 Apr 2011 13:13:22 -0300 Subject: Adding admin config page and preset validation --- imagecache_auto.admin.inc | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 imagecache_auto.admin.inc (limited to 'imagecache_auto.admin.inc') diff --git a/imagecache_auto.admin.inc b/imagecache_auto.admin.inc new file mode 100644 index 0000000..4d31bc5 --- /dev/null +++ b/imagecache_auto.admin.inc @@ -0,0 +1,36 @@ + 'textfield', + '#title' => t('Maximum preset width (pixels)'), + '#default_value' => variable_get('imagecache_auto_max_width', '10000'), + '#size' => 10, + '#maxlength' => 64, + '#description' => t('The maximum width an automatically created ImageCache preset can have.'), + ); + + $form['imagecache_auto_max_height'] = array( + '#type' => 'textfield', + '#title' => t('Maximum preset height (pixels)'), + '#default_value' => variable_get('imagecache_auto_max_height', '10000'), + '#size' => 10, + '#maxlength' => 64, + '#description' => t('The maximum height an automatically created ImageCache preset can have.'), + ); + + return system_settings_form($form); +} -- cgit v1.2.3