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

steve.m’s picture

Assigned: Unassigned » steve.m
Status: Active » Fixed

The 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);

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.