function disqus_migrate_admin_export_settings in Disqus 6
Menu callback for the export settings
1 string reference to 'disqus_migrate_admin_export_settings'
- disqus_migrate_menu in ./
disqus_migrate.module - Implementation of hook_menu().
File
- include/
disqus_migrate.export.inc, line 6
Code
function disqus_migrate_admin_export_settings() {
$form = array();
$form['settings'] = array(
'#type' => 'fieldset',
'#title' => t('Export Settings'),
'#description' => t('Select the following options to effect what comments are exported.'),
);
$status_options = array(
'--' => t('No Change'),
0 => t('Disabled'),
1 => t('Read Only'),
);
$form['settings']['disqus_migrate_export_status_alter'] = array(
'#type' => 'select',
'#default_value' => variable_get('disqus_migrate_export_status_alter', '--'),
'#title' => t('Node comment status change'),
'#description' => t('After comments for a node have been exported, the commenting status can be altered. Useful for disabling Drupal commenting once comments have been exported.'),
'#options' => $status_options,
);
$api_limit_options = array(
20 => 20,
100 => 100,
250 => 250,
500 => 500,
);
$form['settings']['disqus_migrate_export_api_limit'] = array(
'#type' => 'select',
'#options' => $api_limit_options,
'#default_value' => variable_get('disqus_migrate_export_api_limit', 100),
'#title' => t('Batch limit for API export'),
'#description' => t('How many comments should be exported at a time? This does not apply to the XML export. The default value is usually the best bet for performance.'),
);
return system_settings_form($form);
}