I am using Drupal 5.x and have installed the usernode. I then created a view based off of their default userlist.

I am editing the userlist in my template.php with the following function:

function theme_views_view_userlist( $view, $type, $nodes, $level = NULL, $args = NULL ) {
$html = '

    ';
    if( is_array( $nodes ) && count( $nodes ) > 0 ) {

    foreach( $nodes as $nid ) {
    $user = node_load( $nid->nid );
    $html .= '

  • ' . $user->user->profile_first_name . ' ' . $user->user->profile_last_name . '
  • ';
    }
    }
    $html .= '

';

return $html;
}

Which is working fine. But I'm trying to figure out how to display the exposed filter for this .... any direction would be appreciated

Thanks

Comments

msteudel’s picture

Sorry forgot to add the code tags:

function cfgg_views_view_userlist(  $view, $type, $nodes, $level = NULL, $args = NULL ) {
	
	$html = '<ul>';
	if( is_array( $nodes ) && count( $nodes ) > 0 ) {
		
		foreach( $nodes as $nid ) {
			$user = node_load( $nid->nid );
			$html .= '<li>' . $user->user->profile_first_name . ' ' . $user->user->profile_last_name . '</li>';
		}
	}
	$html .= '</ul>';
	
	return $html;
}
msteudel’s picture

Bump ... Sorry hoping someone may have an answer

skru09’s picture

Hi

I am trying to get the exposed filter value as well. Were you successful in getting it??
Any kind of guidance would be appreciated.

Thanks