You are here

function xmlsitemap_get_operation_link in XML sitemap 7.2

Same name and namespace in other branches
  1. 8 xmlsitemap.module \xmlsitemap_get_operation_link()
  2. 6.2 xmlsitemap.module \xmlsitemap_get_operation_link()
  3. 2.x xmlsitemap.module \xmlsitemap_get_operation_link()

Get operation link.

3 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_list_links in xmlsitemap_custom/xmlsitemap_custom.admin.inc
List Links.
xmlsitemap_sitemap_list_form in ./xmlsitemap.admin.inc
Render a tableselect list of XML sitemaps for the main admin page.

File

./xmlsitemap.module, line 1690
xmlsitemap XML sitemap

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.
  if (!isset($link['title'])) {
    $item = menu_get_item($url);
    $link['title'] = $item['title'];
  }
  $link += array(
    'query' => $destination,
  );
  drupal_alter('xmlsitemap_operation_link', $link);
  return $link;
}