function redirect_status_code_options in Redirect 7
Same name and namespace in other branches
- 8 redirect.module \redirect_status_code_options()
- 7.2 redirect.module \redirect_status_code_options()
4 calls to redirect_status_code_options()
- redirect_edit_form in ./
redirect.admin.inc - Form builder to add or edit an URL redirect.
- redirect_generate_batch_generate in ./
redirect.generate.inc - redirect_goto in ./
redirect.module - Redirect callback; perform an URL redirect.
- redirect_settings_form in ./
redirect.admin.inc - Form builder for redirection settings.
File
- ./
redirect.module, line 1566
Code
function redirect_status_code_options($code = NULL) {
$codes = array(
300 => '300 ' . t('Multiple Choices'),
301 => '301 ' . t('Moved Permanently'),
302 => '302 ' . t('Found'),
303 => '303 ' . t('See Other'),
304 => '304 ' . t('Not Modified'),
305 => '305 ' . t('Use Proxy'),
307 => '307 ' . t('Temporary Redirect'),
);
return isset($codes[$code]) ? $codes[$code] : $codes;
}