coder_upgrade_settings_form($form, &$form_state)Form builder for the settings form.
sites/all/modules/coder/coder_upgrade/coder_upgrade.module, line 75
<?php
function coder_upgrade_settings_form($form, &$form_state) {
$path = file_directory_path();
$form['coder_upgrade_dir_old'] = array(
'#title' => t('Module input directory'),
'#type' => 'textfield',
'#required' => TRUE,
'#default_value' => variable_get('coder_upgrade_dir_old', DEADWOOD_OLD),
'#description' => t('Directory beneath the file system path (!path) in which to upload 6.x module code. Default is !default.', array('!path' => $path, '!default' => DEADWOOD_OLD)),
'#size' => 30,
'#maxlength' => 255,
'#validate' => array('coder_upgrade_validate_dir_old'),
);
$form['coder_upgrade_dir_new'] = array(
'#title' => t('Module output directory'),
'#type' => 'textfield',
'#required' => TRUE,
'#default_value' => variable_get('coder_upgrade_dir_new', DEADWOOD_NEW),
'#description' => t('Directory beneath the file system path (!path) in which to save the converted 7.x module code. Default is !default.', array('!path' => $path, '!default' => DEADWOOD_NEW)),
'#size' => 30,
'#maxlength' => 255,
'#validate' => array('coder_upgrade_validate_dir_new'),
);
$form['coder_upgrade_dir_patch'] = array(
'#title' => t('Module patch directory'),
'#type' => 'textfield',
'#required' => TRUE,
'#default_value' => variable_get('coder_upgrade_dir_patch', DEADWOOD_PATCH),
'#description' => t('Directory beneath the file system path (!path) in which to save the patch files from the converted modules. Default is !default.', array('!path' => $path, '!default' => DEADWOOD_PATCH)),
'#size' => 30,
'#maxlength' => 255,
'#validate' => array('coder_upgrade_validate_dir_patch'),
);
return system_settings_form($form);
}
?>