You are here

function redirect_generate_form in Redirect 8

Same name and namespace in other branches
  1. 7.2 redirect.generate.inc \redirect_generate_form()
  2. 7 redirect.generate.inc \redirect_generate_form()

@file Devel generate integration for the redirect module.

File

./redirect.generate.inc, line 19
Generate callbacks for the redirect module.

Code

function redirect_generate_form() {
  $form['count'] = [
    '#type' => 'textfield',
    '#title' => t('How many URL redirects would you like to generate?'),
    '#default_value' => 50,
    '#size' => 4,
  ];
  $form['delete'] = [
    '#type' => 'checkbox',
    '#title' => t('Delete all URL redirects before generating new URL redirects.'),
    '#default_value' => FALSE,
  ];
  $form['submit'] = [
    '#type' => 'submit',
    '#value' => t('Generate'),
  ];
  return $form;
}