Should be "Add a URL redirect from this page to another location". Sorry for the lack of patch.
/**
* Implements hook_page_build().
*
* Adds an action on 404 pages to create a redirect.
*/
function redirect_page_build(&$page) {
if (redirect_is_current_page_404() && user_access('administer redirects')) {
$actions['add'] = array(
'title' => t('Add an URL redirect from this page to another location'),
'href' => 'admin/config/search/redirect/add',
'query' => array('source' => current_path()) + drupal_get_destination(),
);
$page['content']['system_main']['actions'] = array(
'#theme' => 'links',
'#links' => $actions,
'#attributes' => array('class' => array('action-links')),
'#weight' => -100,
);
}
}
Comments
Comment #1
dave reidI went with 'Add URL redirect from this page...' since core uses 'Add URL alias' on its url alias table.
http://drupalcode.org/project/redirect.git/commit/9eea5c7
Comment #2
robloachDave Reid kills sharks with his bare hands.
Comment #3
robloachAlso, I fail at spelling.