function stringoverrides_migrate_admin_export in String Overrides 7
Ability to export a *.po file.
1 string reference to 'stringoverrides_migrate_admin_export'
- stringoverrides_migrate_menu in ./
stringoverrides_migrate.module - Implements hook_menu().
File
- ./
stringoverrides_migrate.admin.inc, line 66 - Stringoverride migration admin.
Code
function stringoverrides_migrate_admin_export() {
$languages = module_exists('locale') ? locale_language_list() : array(
'en' => t('English'),
);
$form['lang'] = array(
'#type' => 'select',
'#title' => t('Language'),
'#description' => t('The language you would like to export.'),
'#options' => $languages,
'#required' => TRUE,
);
$form['export'] = array(
'#type' => 'submit',
'#value' => t('Export'),
'#weight' => 3,
);
$form['#submit'][] = 'stringoverrides_admin_export_submit';
return $form;
}