function redirect_status_code_options in Redirect 8
Same name and namespace in other branches
- 7.2 redirect.module \redirect_status_code_options()
- 7 redirect.module \redirect_status_code_options()
3 calls to redirect_status_code_options()
- RedirectForm::form in src/
Form/ RedirectForm.php - Gets the actual form array to be built.
- RedirectSettingsForm::buildForm in src/
Form/ RedirectSettingsForm.php - Form constructor.
- redirect_generate_batch_generate in ./
redirect.generate.inc
File
- ./
redirect.module, line 227 - The redirect module.
Code
function redirect_status_code_options($code = NULL) {
$codes = [
300 => t('300 Multiple Choices'),
301 => t('301 Moved Permanently'),
302 => t('302 Found'),
303 => t('303 See Other'),
304 => t('304 Not Modified'),
305 => t('305 Use Proxy'),
307 => t('307 Temporary Redirect'),
];
return isset($codes[$code]) ? $codes[$code] : $codes;
}