drupal-6


Setting a page variable in a function


I'd like to set a page variable myblock = false inside my menu callback function. So that this block is not shown when the menu entry is clicked.
I want to do something like this:
function mymenu_cbfunction() {
... // $myblock=false ??
}
to deactive the block in page.tpl.php :
<?php if ($myblock):?><div>php print $myblock; ?></div><?php endif; ?>
Is there a way to do this?
If you are looking to exclude showing this block on certain pages, just edit the block at admin/build/block to exclude it on certain pages. The configuration form looks like:
If you want to immediately hide the block without navigating to a new page, that would be a good use for JavaScript/jQuery.

Related Links

Which all tables get updated during a content a saved in drupal
drupal module development
How to make multilanguage views (Views-module)
Limit the contents shared by the author
How to theme exposed filter items in views - drupal 6
How to validate the input of views exposed form in drupal-6
Is it possible to use a story's title as a pager in views slideshow?
Force password change on email activation
Drupal 6 next tid value
subscription to news letter in drupal
IP to country in counter report in drupal
Image and video gallery on drupal website
How to add php files in drupal modules
Drupal - Computed Fields - Taxonomy Term Weight?
Automatically update drupal nodes at submit time
Privatemsg & send email notify on new message drupal6

Categories

HOME
coq
openmp
mediawiki
heroku
path-finding
objectgears
spagobi
yum
flyway4
append
esper
node-pdfkit
modelica
orchardcms
fallback
msp430
ghc
graphlab
ef-migrations
http-status-code-504
tapestry
angular2-aot
sqlcipher
dynamic-featured-image
kannel
react-css-modules
minitab
log4js-node
librato
create-table
avcapturesession
jmonkeyengine
http-digest
overlap
mixture-model
objectlistview
opshub
tasker
dism
ncalc
no-www
slick-3.0
qcombobox
outlook-2013
react-scripts
errordocument
domain-model
darcs
slickedit
windows-iot-core-10
lync-client-sdk
root-framework
passport-google-oauth
bluegiga
browser-link
fouc
security-testing
0xdbe
service-accounts
createprocessasuser
sniffer
c3
tt-news
file-copying
qcodo
typeof
padarn
android-screen-support
html-editor
specification-pattern
mhtml
libstdc++
isnullorempty
multipage
enter
postgresql-performance
work-stealing
whoosh
php-parser
nsobject
hirefire
servicehost
yui-datatable
locate
w3wp.exe
photoshop-cs4
avatar
yagni
ajax-forms

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App