I have a block and I need to show this block only in some situations. For example if title of node includes "abc", block will be visible else it won't. From visibility settings of block I use this code snippet:
<?php
$match = FALSE;
$url = request_uri();
if (strpos($url, "myword")) {
$match = TRUE;
}
?>
I'm sure that "myword" is included in full URL of node. I tried to debug it by adding "echo $url" but it didn't write this line into page.
How can I solve this?
edit: in last line i forgot to add "return $match;" which returned always false.