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

Can't access node-taxonomy.tpl.php through page-taxonomy-term.tpl in Drupal 6
drupal 6 forms type = select multiple = true… what is the returned value?
Pulling date of user's last purchase in drupal
Drupal 6 How to hide fileds on creating content but show on editing content?
Drupal 6 - creating full page content with no sidebars within
Node save with multiple taxonomy field of different vocabulary in drupal 6
Hybridauth module social network icons not working with user/register page drupal 6
Is there a way to make an online customer tax exempt?
How to put two form elements in a row using Drupal Form API?
Increase memory_limit of subdomains in the plesk panel
Cart items missing after login, drupal6 with ubercart
How to disable “Read more” link in product description? (ubercart, drupal6)
How to configure site created in drupal on some other machine to be run on localhost of another machine
How to have different style files in multilingual website using Drupal 6?
scrollable views in drupal 6 is needed
hook_comment is not working for update operation in drupal

Categories

HOME
testing
arduino-uno
c#-4.0
drivers
amazon-ecs
electronics
fsm
opengl-es-2.0
fancybox
indesign
upload
contact
session-variables
spring-xd
quicklook
remote-access
leiningen
visual-studio-2005
lombok
django-simple-history
telephony
karma-jasmine
ml
xlsxwriter
excel-2007
autosys
crosstab
crystal-reports-2010
one-to-many
brunch
linkerd
windows-error-reporting
fluentvalidation
publish
gsoap
skia
google-rich-snippets
airconsole
pdb
code-contracts
protovis
repo
appfabric
bitbucket-pipelines
space-complexity
neuroscience
jna
s
node-sass
eclipse-gef
executenonquery
skeleton-css-boilerplate
hendrix
mu
nativeapplication
ifs
vtigercrm
crosswalk-runtime
xcb
medium.com
qpid
clang-static-analyzer
pagedlist
ready-api
phpcas
rtbkit
google-places
jmeter-maven-plugin
wordml
fscommand
phalanger
client-side-templating
project-planning
centos5
listings
coverflow
clipper
kyotocabinet
sublist
gil
ticoredatasync
bubble-chart
windows-phone-7.1.1
libc++
stage
tomcat-valve
actionview
android-sdk-2.1
nhibernate.search
nintendo-ds
backcolor
simpletest
paul-graham
document-conversion
ntvdm.exe

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App