Drupal Block Callback Example


/ Published in: PHP
Save to your folder(s)

This is a callback example that can be used to conditionally display blocks on specific pages. In this example, I load all nodes with a specific field and return false if the value of that field is equal to the user id of the logged in user. The snippet in it's entirety probably won't be helpful, but it contains functions that have many applications.

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.