'#description'=>t('URLs longer than this number of characters will be truncated to prevent long strings that break formatting. The link itself will be retained; just the text portion of the link will be truncated.'),
@@ -86,21 +86,23 @@ function image_field_instance_settings_form($field, $instance) {
'#description'=>t('The maximum allowed image size expressed as WIDTHxHEIGHT (e.g. 640x480). Leave blank for no restriction. If a larger image is uploaded, it will be resized to reflect the given width and height. Resizing images on upload will cause the loss of <a href="http://en.wikipedia.org/wiki/Exchangeable_image_file_format">EXIF data</a> in the image.'),
);
$form['max_resolution']['x']=array(
'#type'=>'textfield',
'#type'=>'number',
'#title'=>t('Maximum width'),
'#title_display'=>'invisible',
'#default_value'=>$max_resolution[0],
'#size'=>5,
'#maxlength'=>5,
'#min'=>1,
'#field_suffix'=>' x ',
);
$form['max_resolution']['y']=array(
'#type'=>'textfield',
'#type'=>'number',
'#title'=>t('Maximum height'),
'#title_display'=>'invisible',
'#default_value'=>$max_resolution[1],
'#size'=>5,
'#maxlength'=>5,
'#min'=>1,
'#field_suffix'=>' '.t('pixels'),
);
...
...
@@ -115,21 +117,23 @@ function image_field_instance_settings_form($field, $instance) {
'#description'=>t('The minimum allowed image size expressed as WIDTHxHEIGHT (e.g. 640x480). Leave blank for no restriction. If a smaller image is uploaded, it will be rejected.'),
);
$form['min_resolution']['x']=array(
'#type'=>'textfield',
'#type'=>'number',
'#title'=>t('Minimum width'),
'#title_display'=>'invisible',
'#default_value'=>$min_resolution[0],
'#size'=>5,
'#maxlength'=>5,
'#min'=>1,
'#field_suffix'=>' x ',
);
$form['min_resolution']['y']=array(
'#type'=>'textfield',
'#type'=>'number',
'#title'=>t('Minimum height'),
'#title_display'=>'invisible',
'#default_value'=>$min_resolution[1],
'#size'=>5,
'#maxlength'=>5,
'#min'=>1,
'#field_suffix'=>' '.t('pixels'),
);
...
...
@@ -161,17 +165,12 @@ function image_field_instance_settings_form($field, $instance) {
@@ -90,11 +90,12 @@ function search_admin_settings($form) {
'#markup'=>t('<p><em>Changing the settings below will cause the site index to be rebuilt. The search index is not cleared but systematically updated to reflect the new settings. Searching will continue to work but new content won\'t be indexed until all existing content has been re-indexed.</em></p><p><em>The default settings should be appropriate for the majority of sites.</em></p>')
'#description'=>t('The number of characters a word has to be to be indexed. A lower setting means better search result ranking, but also a larger database. Each search query must contain at least one keyword that is this size (or longer).')
'#description'=>t('Maximum allowed file size for uploaded pictures. Upload size is normally limited only by the PHP maximum post and file upload settings, and images are automatically scaled down to the dimensions specified above.'),