Created
November 27, 2012 19:33
-
-
Save kevinchampion/4156466 to your computer and use it in GitHub Desktop.
Simple views field handler for radioactivity.
This file contains hidden or 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
/** | |
* Field handler to provide simple renderer that calls function to record | |
* radioactivity of the node being viewed. | |
*/ | |
class mcard_handler_field_node_radioactivity extends views_handler_field_node { | |
function render($values) { | |
if (module_exists('radioactivity')) { | |
radioactivity_node_user_node_view($values->nid); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment