function redirect_generate_form in Redirect 7
Same name and namespace in other branches
- 8 redirect.generate.inc \redirect_generate_form()
- 7.2 redirect.generate.inc \redirect_generate_form()
@file Devel generate integration for the redirect module.
1 string reference to 'redirect_generate_form'
- redirect_menu in ./
redirect.module - Implements hook_menu().
File
- ./
redirect.generate.inc, line 8 - Devel generate integration for the redirect module.
Code
function redirect_generate_form() {
$form['count'] = array(
'#type' => 'textfield',
'#title' => t('How many URL redirects would you like to generate?'),
'#default_value' => 50,
'#size' => 4,
);
$form['delete'] = array(
'#type' => 'checkbox',
'#title' => t('Delete all URL redirects before generating new URL redirects.'),
'#default_value' => FALSE,
);
$form['submit'] = array(
'#type' => 'submit',
'#value' => t('Generate'),
);
return $form;
}