You are here

function stringoverrides_admin_export in String Overrides 6

Same name and namespace in other branches
  1. 5 stringoverrides.admin.inc \stringoverrides_admin_export()

Ability to export a *.po file.

1 string reference to 'stringoverrides_admin_export'
stringoverrides_menu in ./stringoverrides.module
Implementation of hook_menu()

File

./stringoverrides.admin.inc, line 310
Admin page callbacks for the String Overrides module.

Code

function stringoverrides_admin_export() {
  $form = array();
  $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;
}