You are here

function path_redirect_local_actions in Path redirect 6

2 calls to path_redirect_local_actions()
path_redirect_admin_redirects in ./path_redirect.admin.inc
Render a list of redirects for the main admin page.
path_redirect_form_alter in ./path_redirect.module
Implements hook_form_alter().

File

./path_redirect.module, line 228

Code

function path_redirect_local_actions($redirect = array()) {
  $links = array(
    'add' => array(
      'title' => $redirect ? t('Add redirect to this location') : t('Add redirect'),
      'href' => 'admin/build/path-redirect/add',
      'query' => drupal_get_destination() . ($redirect ? '&' . drupal_query_string_encode($redirect) : ''),
    ),
  );
  return theme('links', $links, array(
    'class' => 'item-list action-links',
  ));
}