Skip to content

Instantly share code, notes, and snippets.

@steven2358
Created November 18, 2013 13:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steven2358/7527496 to your computer and use it in GitHub Desktop.
Save steven2358/7527496 to your computer and use it in GitHub Desktop.
Drupal 6 module to hide user history in user profile
name = Hide user history
description = "Hide the history tab on user pages."
package = User interface
version = "6.x-1.0"
core = "6.x"
project = "hide_user_history"
<?php
/**
* Implementation of hook user to do some customization
* https://drupal.org/node/138127#comment-801950
*/
function hide_user_history_user($op, &$edit, &$account, $category = NULL) {
if ($op == 'view') {
// Turn of user history
unset($account->content['summary']);
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment