You are here

function xmlsitemap_get_operation_link in XML sitemap 6.2

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_get_operation_link()
  2. 7.2 xmlsitemap.module \xmlsitemap_get_operation_link()
  3. 2.x xmlsitemap.module \xmlsitemap_get_operation_link()
5 calls to xmlsitemap_get_operation_link()
xmlsitemap_add_form_entity_summary in ./xmlsitemap.admin.inc
Add a table summary for an entity and its bundles.
xmlsitemap_custom_link_links_local_actions in xmlsitemap_custom/xmlsitemap_custom.admin.inc
@file Administrative page callbacks for the xmlsitemap_custom module.
xmlsitemap_custom_list_links in xmlsitemap_custom/xmlsitemap_custom.admin.inc
xmlsitemap_sitemap_list_form in ./xmlsitemap.admin.inc
Render a tableselect list of XML sitemaps for the main admin page.
xmlsitemap_sitemap_list_form_local_actions in ./xmlsitemap.admin.inc
@file Administrative page callbacks for the xmlsitemap module.

File

./xmlsitemap.module, line 1464
Main file for the xmlsitemap module.

Code

function xmlsitemap_get_operation_link($url, $options = array()) {
  static $destination;
  if (!isset($destination)) {
    $destination = drupal_get_destination();
  }
  $link = array(
    'href' => $url,
  ) + $options;

  // Fetch the item's menu router link info and title.
  $item = menu_get_item($url);
  $link += array(
    'title' => $item['title'],
    'router info' => $item,
    'query' => $destination,
  );
  drupal_alter('xmlsitemap_operation_link', $link);
  return $link;
}