Drupal7 PHP-mode, experts only: adding php-rule to show pages || blocks
Declare exactly via
query string param
<?php
if ($_GET['q'] == 'user') {
return TRUE;
}
else {
return FALSE;
}
?>
Declare through the obtaining of the URI parts
Declare exactly via
query string param
<?php
if ($_GET['q'] == 'user') {
return TRUE;
}
else {
return FALSE;
}
?>
Declare through the obtaining of the URI parts
<?php
if(arg(0) == 'user' && arg(2) != 'edit' )
return true;
else
return false
?>
E.g., the sport article, whose path is http://www.example.com/sport.
if ($variables['price'] > '0.00') {
$output = '<span class="uc-price">'. uc_multi_currency_format($variables['price'], $currency) .'</span>';
}
else {
$output = '';
}if ($variables['price'] > '0.00') {
$output = '<span class="uc-price">' . uc_currency_format($variables['price']) . '</span>';
}
else {After enabling the Solr-module: https://www.drupal.org/project/search_api_solr
jQuery(document).ready(function($){
});
(function ($) {
}(jQuery));
Useful pages:
https://www.drupal.org/docs/develop/standards/javascript/jquery-coding-s...
https://www.drupal.org/docs/7/theming/working-with-javascript-and-jquery
© 2026 Websites' Development with Drupal