You are here

function xmlsitemap_engines_prepare_url in XML sitemap 7.2

Same name and namespace in other branches
  1. 8 xmlsitemap_engines/xmlsitemap_engines.module \xmlsitemap_engines_prepare_url()
  2. 6.2 xmlsitemap_engines/xmlsitemap_engines.module \xmlsitemap_engines_prepare_url()
  3. 2.x xmlsitemap_engines/xmlsitemap_engines.module \xmlsitemap_engines_prepare_url()

Replace valid tokens in the URL with their appropriate values.

Parameters

string $url: An un-tokenized URL.

Return value

string A tokenized URL.

6 calls to xmlsitemap_engines_prepare_url()
XMLSitemapEnginesFunctionalTest::testCustomURL in xmlsitemap_engines/tests/xmlsitemap_engines.test
Test Custom URL.
XMLSitemapEnginesFunctionalTest::testPrepareURL in xmlsitemap_engines/tests/xmlsitemap_engines.test
Test Prepare URL.
xmlsitemap_engines_settings_form in xmlsitemap_engines/xmlsitemap_engines.admin.inc
Form builder; Administration settings form.
xmlsitemap_engines_submit_sitemaps in xmlsitemap_engines/xmlsitemap_engines.module
Submit the sitemaps to a specific URL.
xmlsitemap_engines_validate_custom_urls in xmlsitemap_engines/xmlsitemap_engines.admin.inc
Validate the custom submission URL element.

... See full list

File

xmlsitemap_engines/xmlsitemap_engines.module, line 174
Main file for XML sitemap engines.

Code

function xmlsitemap_engines_prepare_url($url, $sitemap) {
  return str_replace('[sitemap]', $sitemap, $url);
}