'fieldset', '#title' => t('AWS settings'), '#collapsible' => TRUE, '#collapsed' => FALSE, ); $form['aws-settings']['creeper_aws_id_key'] = array( '#type' => 'textfield', '#title' => t('AWS id key'), '#default_value' => variable_get('creeper_aws_id_key',''), '#size' => 50, '#maxlength' => 255, '#description' => t('

Your AWS id key.

'), '#required' => TRUE, ); $form['aws-settings']['creeper_aws_secret_key'] = array( '#type' => 'textfield', '#title' => t('AWS Secret key'), '#default_value' => variable_get('creeper_aws_secret_key',''), '#size' => 50, '#maxlength' => 255, '#description' => t('

Your AWS secret key.

'), '#required' => TRUE, ); $form['aws-settings']['creeper_aws_account_id'] = array( '#type' => 'textfield', '#title' => t('AWS Account ID'), '#default_value' => variable_get('creeper_aws_account_id','aws@ohmforce.com'), '#size' => 50, '#maxlength' => 255, '#description' => t('

Your AWS account id (email).

'), '#required' => TRUE, ); return system_settings_form($form); } function creeper_admin_settings_submit($form,&$form_state) { variable_set('creeper_aws_id_key',$form_state['values']['creeper_aws_id_key']); variable_set('creeper_aws_secret_key',$form_state['values']['creeper_aws_secret_key']); variable_set('creeper_aws_account_id',$form_state['values']['creeper_aws_account_id']); }