You are here

function neutral_paths_admin in Neutral paths 7

Admin form.

1 string reference to 'neutral_paths_admin'
neutral_paths_menu in ./neutral_paths.module
Implements hook_menu().

File

./neutral_paths.module, line 35
Neutral paths.

Code

function neutral_paths_admin() {
  $form = array();
  $form['neutral_paths_fix_new'] = array(
    '#type' => 'checkboxes',
    '#options' => array(
      'node' => t('Nodes'),
      'taxonomy' => t('Taxonomy'),
      'user' => t('Users'),
    ),
    '#title' => t('Set all newly created path aliases to be language neutral'),
    '#default_value' => variable_get('neutral_paths_fix_new', array()),
  );
  $form['np_save'] = array(
    '#type' => 'submit',
    '#value' => t('Save configuration'),
    '#submit' => array(
      'neutral_paths_admin_submit',
    ),
  );
  $form['np_actions'] = array(
    '#type' => 'fieldset',
    '#title' => t('Immediate actions'),
  );
  $form['np_actions']['np_bulk_neutral_node'] = _neutral_paths_admin_form_part('node', t('Language neutral node path aliases'));
  $form['np_actions']['np_bulk_neutral_taxonomy'] = _neutral_paths_admin_form_part('taxonomy', t('Language neutral taxonomy path aliases'));
  $form['np_actions']['np_bulk_neutral_user'] = _neutral_paths_admin_form_part('user', t('Language neutral user path aliases'));
  return $form;
}