Commit 5dfe21f8 authored by Dave Reid's avatar Dave Reid

by Dave Reid: Added missing breadcrumbs to the custom links pages.

parent 7e3957ae
......@@ -72,6 +72,9 @@ function xmlsitemap_custom_list_links() {
function xmlsitemap_custom_edit_link_form($form, &$form_state, $link = array()) {
module_load_include('inc', 'xmlsitemap', 'xmlsitemap.admin');
// @todo Remove when http://drupal.org/node/576290 is fixed.
_xmlsitemap_set_breadcrumb('admin/config/search/xmlsitemap/custom');
$link += array(
'id' => db_query("SELECT MAX(id) FROM {xmlsitemap} WHERE type = 'custom'")->fetchField() + 1,
'loc' => '',
......@@ -174,6 +177,10 @@ function xmlsitemap_custom_edit_link_form_submit($form, &$form_state) {
}
function xmlsitemap_custom_delete_link_form($form, &$form_state, array $link) {
// @todo Remove when http://drupal.org/node/576290 is fixed.
module_load_include('inc', 'xmlsitemap', 'xmlsitemap.admin');
_xmlsitemap_set_breadcrumb('admin/config/search/xmlsitemap/custom');
$form['link'] = array(
'#type' => 'value',
'#value' => $link,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment