Skip to content
Snippets Groups Projects
Commit 3a98850d authored by catch's avatar catch
Browse files

Issue #1991092 by David_Rothstein: Fixed 'Edit shortcuts' link in the toolbar...

Issue #1991092 by David_Rothstein: Fixed 'Edit shortcuts' link in the toolbar points to a nonexistent page (as does the 'add shortcuts' link on an empty shortcut set).
parent 0a7825c8
No related branches found
No related tags found
No related merge requests found
......@@ -283,7 +283,7 @@ function theme_shortcut_set_customize($variables) {
}
$header = array(t('Name'), t('Weight'), t('Operations'));
$output = theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'shortcuts'), 'empty' => t('No shortcuts available. <a href="@link">Add a shortcut</a>.', array('@link' => url('admin/config/user-interface/shortcut/' . $form['#shortcut_set_name'] . '/add-link')))));
$output = theme('table', array('header' => $header, 'rows' => $rows, 'attributes' => array('id' => 'shortcuts'), 'empty' => t('No shortcuts available. <a href="@link">Add a shortcut</a>.', array('@link' => url('admin/config/user-interface/shortcut/manage/' . $form['#shortcut_set_name'] . '/add-link')))));
$output .= drupal_render($form['actions']);
$output = drupal_render_children($form) . $output;
return $output;
......
......@@ -528,7 +528,7 @@ function shortcut_toolbar() {
$configure_link = array(
'#type' => 'link',
'#title' => t('Edit shortcuts'),
'#href' => 'admin/config/user-interface/shortcut/' . $shortcut_set->id(),
'#href' => 'admin/config/user-interface/shortcut/manage/' . $shortcut_set->id(),
'#options' => array('attributes' => array('class' => array('edit-shortcuts'))),
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment