Drupal url current page
The function that displays the url of the current page
request_uri();
To use it in if statement; emplor strpos php function
$url = request_uri();
if (strpos($url, “contact”)) { print “this the contact page”; }
The function that displays the url of the current page
request_uri();
To use it in if statement; emplor strpos php function
$url = request_uri();
if (strpos($url, “contact”)) { print “this the contact page”; }