Left file: \\figbird\corporate-open.ac.uk.sac76\modules\ftools\features_tools.module
Right file: \\figbird\corporate-open.ac.uk.sac76\modules\ftools\features_tools_2.module
29a30,36
>   
>   $items['admin/build/features/defaults'] = array(
>     'title' => 'configure defaults',
>     'page callback' => 'drupal_get_form',
>     'page arguments' => array('features_tools_defaults_form'),
>     'access arguments' => array('configure ftools defaults'),
>   );
38a46,49
>   
>   // Determine the default destination path for this site
>   $info = features_tools_get_variables();
>   $default_dest_path = $info['features_tools-path'] ? $info['features_tools-path'] : 'sites/all/modules';
49c60
<     '#default_value' => $form['#feature']->name ? drupal_get_path('module', $form['#feature']->name) : 'sites/all/modules',
---
>     '#default_value' => $form['#feature']->name ? drupal_get_path('module', $form['#feature']->name) : $default_dest_path,
256a268,321
> function features_tools_defaults_form($form_state) {
> 	$info = features_tools_get_variables();
> 	
> 	// Build the form and insert the existing data
> 	$form = array();
> 	
> 	$form['features_tools-path'] = array(
> 		'#type' => 'textfield',
> 		'#title' => t('auto created path'),
> 		'#value' => $info['features_tools-path'],
> 		'#maxlength' => 254,
> 		'#size' => 50,
> 		'#description' => t('The path to store all auto created modules by default'),
> 	);
> 			
> 	$form['submit'] = array(
> 		'#type' => 'submit',
> 		'#value' => t('Save Configuration')
> 	);	
> 
> 	return $form;
> }
> 
> function features_tools_defaults_form_submit($form, &$form_state) { 
>   
>   global $features_tools_var_list;
>   
>   foreach ($features_tools_var_list as $item) {
> 	// Grab the values we want from the post request
>     $info[$item] = $form['#post'][$item];
> 	// Store the data in the variables list for next time
>     variable_set($item, $info[$item]);
>   } 	
> 	/// Tell the user
>   drupal_set_message(t('Configuation Updated'));
> }
> 
> global $features_tools_var_list;
> // The variables we care about from the drupal variables table
> $features_tools_var_list = array(
> 	'features_tools-path', 
> );
> 
> function features_tools_get_variables() {
>   
>   global $features_tools_var_list;
>   
>   foreach ($features_tools_var_list as $item) {
>       $var_list[$item] = variable_get($item, '');
>   }
>   
>   return $var_list;
> }
> 
