function stringoverrides_admin_import in String Overrides 6
Same name and namespace in other branches
- 5 stringoverrides.admin.inc \stringoverrides_admin_import()
Menu callback for the String Overrides module to display the import administration
1 string reference to 'stringoverrides_admin_import'
- stringoverrides_menu in ./
stringoverrides.module - Implementation of hook_menu()
File
- ./
stringoverrides.admin.inc, line 216 - Admin page callbacks for the String Overrides module.
Code
function stringoverrides_admin_import() {
$form = array();
$form['#attributes'] = array(
'enctype' => "multipart/form-data",
);
$languages = module_exists('locale') ? locale_language_list() : array(
'en' => t('English'),
);
$form['file'] = array(
'#type' => 'file',
'#title' => t('File'),
'#description' => t('Attach your *.po file here to import the string overrides.'),
);
$form['lang'] = array(
'#type' => 'select',
'#title' => t('Language'),
'#description' => t('Which language to import the overrides to.'),
'#options' => $languages,
);
$form['import'] = array(
'#type' => 'submit',
'#value' => t('Import'),
'#weight' => 3,
);
return $form;
}