i want to display the number of participants in a block view
Tried to do $output = "<p>There are $participant_count participants:</p>" . $output; as in connect.module
but it's not showing anything yet
i want to display the number of participants in a block view
Tried to do $output = "<p>There are $participant_count participants:</p>" . $output; as in connect.module
but it's not showing anything yet
Comments
Comment #1
steve.m commentedThe code to get the participant count would be something like this:
$nid = 75 // the node ID of your action
$action = node_load($nid);
$count = connect_participant_count($action);