function module_builder_admin_settings in Module Builder 7.2
Same name and namespace in other branches
- 5 module_builder.module \module_builder_admin_settings()
- 6.2 includes/module_builder.admin.inc \module_builder_admin_settings()
- 7 includes/module_builder.admin.inc \module_builder_admin_settings()
Admin settings page.
Related topics
1 string reference to 'module_builder_admin_settings'
- module_builder_menu in ./
module_builder.module - Implementation of hook_menu().
File
- includes/
module_builder.admin.inc, line 13 - Menu callbacks for admin pages.
Code
function module_builder_admin_settings($form, &$form_state) {
$public_dir = drupal_realpath(file_default_scheme() . '://');
$form['module_builder_hooks_directory'] = array(
'#type' => 'textfield',
'#title' => t('Path to hook documentation directory'),
'#description' => t('Subdirectory in the directory "%dir" where local copies of hook documentation should be stored.', array(
'%dir' => $public_dir,
)),
'#default_value' => variable_get('module_builder_hooks_directory', 'hooks'),
);
/*
// Temporarily disabled, as there's currently no functionality to write files.
$form['module_builder_write_directory'] = array(
'#type' => 'textfield',
'#title' => t('Path to write module files'),
'#description' => t('Subdirectory in the directory "%dir" where module files should be written.', array('%dir' => $public_dir)),
'#default_value' => variable_get('module_builder_write_directory', 'modules'),
);
*/
/*
$form['module_builder_download'] = array(
'#type' => 'radios',
'#title' => t('Download module file checkbox defaults to'),
'#description' => t('When checked, this will automatically generate your module file for you and prompt your browser to download it.'),
'#options' => array(
1 => t('Enabled'),
0 => t('Disabled'),
),
'#default_value' => variable_get('module_builder_download', 1),
);
*/
return system_settings_form($form);
}