i18n_select.admin.inc 947 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * @file
  4. * Helper functions for select administration.
  5. */
  6. function i18n_select_admin_settings() {
  7. $form['types'] = array(
  8. '#type' => 'variable_fieldset',
  9. '#title' => t('Content to filter by language'),
  10. '#variable_list' => array('i18n_select_nodes', 'i18n_select_taxonomy'),
  11. );
  12. $form['mode'] = array(
  13. '#type' => 'variable_fieldset',
  14. '#title' => t('Content selection mode'),
  15. '#variable_list' => array('i18n_select_missing_translation', 'i18n_select_skip_tags'),
  16. );
  17. // Enable for specific pages. This works pretty much like block visibility
  18. // Note this page requires 'administer site configuration' so we don't need to check permissions
  19. $form['pages'] = array(
  20. '#type' => 'variable_fieldset',
  21. '#title' => t('Enable for specific pages'),
  22. '#variable_list' => array('i18n_select_page_mode', 'i18n_select_page_list', 'i18n_select_page_block'),
  23. );
  24. return system_settings_form($form);
  25. }