diff options
Diffstat (limited to 'imagecache_auto.admin.inc')
-rw-r--r-- | imagecache_auto.admin.inc | 36 |
1 files changed, 36 insertions, 0 deletions
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 @@ +<?php +// $Id$ + +/** + * @file + * + * Administration page callbacks. + */ + +/** + * Form builder. Configure ImageCache Auto. + * + * @ingroup forms + * @see system_settings_form() + */ +function imagecache_auto_admin_settings() { + $form['imagecache_auto_max_width'] = array( + '#type' => '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); +} |