Skip to content

Instantly share code, notes, and snippets.

@pixelwhip
Created January 13, 2012 21:49
Show Gist options
  • Save pixelwhip/1608888 to your computer and use it in GitHub Desktop.
Save pixelwhip/1608888 to your computer and use it in GitHub Desktop.
/**
* Implements hook_block_view_MODULE_DELTA_alter().
*/
function ex_user_block_view_masquerade_masquerade_alter(&$data, $block) {
// Allow the block to be hidden using a conf variable.
if (!variable_get('ex_user_show_masquerade_block', 1)) {
$data = array();
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment