'85%', ); // Reset to default value if the user specified setting is invalid $saved_width = $saved_settings['pixture_width']; $saved_settings['pixture_width'] = pixture_validate_page_width($saved_width); // Merge the saved variables and their default values $settings = array_merge($defaults, $saved_settings); // Create the form widgets using Forms API $form['pixture_width'] = array( '#type' => 'textfield', '#title' => t('Page width'), '#default_value' => $settings['pixture_width'], '#size' => 12, '#maxlength' => 8, '#description' => t('Specify the page width in percent ratio (50-100%) for liquid layout, or in px (800-1600px) for fixed width layout. If an invalid value is specified, the default value (85%) is used instead. You can leave this field blank to use the default value. You need to add either % or px after the number.'), ); // Return the additional form widgets return $form; } ?>