function imageblock_admin_settings_form in Image Block 6
Same name and namespace in other branches
- 7 imageblock.admin.inc \imageblock_admin_settings_form()
1 string reference to 'imageblock_admin_settings_form'
- imageblock_menu in ./
imageblock.module - Implements hook_menu().
File
- ./
imageblock.admin.inc, line 3
Code
function imageblock_admin_settings_form() {
$form['imageblock_max_file_size'] = array(
'#type' => 'textfield',
'#title' => t('Maximum file size'),
'#description' => t('Specify the size limit that applies to each image. Enter a value like "512" (bytes), "80K" (kilobytes) or "50M" (megabytes) in order to restrict the allowed file size. If you leave this empty the file sizes will be limited only by PHP\'s maximum post and file upload sizes (current limit <strong>%limit</strong>).', array(
'%limit' => format_size(file_upload_max_size()),
)),
'#default_value' => variable_get('imageblock_max_file_size', 0),
);
$form['imageblock_max_dimensions'] = array(
'#type' => 'textfield',
'#title' => t('Maximum dimensions'),
'#description' => t('The maximum allowed image size expressed as WIDTHxHEIGHT (e.g. 640x480). Set to 0 for no restriction. If a larger image is uploaded, it will be resized to reflect the given width and height.'),
'#default_value' => variable_get('imageblock_max_dimensions', 0),
);
return system_settings_form($form);
}