Created
November 18, 2013 13:10
-
-
Save steven2358/7527496 to your computer and use it in GitHub Desktop.
Drupal 6 module to hide user history in user profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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