I have a Quicktab that I would like to insert a PHP code into.

Its a tab for friends and I'd like the tab to read: " (# of friends the user has) Friends"

I have a php code that works:


// load view object (has no results yet)
$view = views_get_current_view();

// execute view query
$view->execute();

// results are now stored as an array in $view->result
$count = count( $view->result );

print "<b>$count</b> Friends";

Is there anyway to use this in the Tab's title?

Thanks,
Chris

Comments

pasqualle’s picture

Yes, create the Quick Tabs block programmatically.
http://drupal.org/node/679148

pasqualle’s picture

Yes, create the Quick Tabs block programmatically. http://drupal.org/node/679148
or use hook_quicktabs_alter #671590: Allow dynamic tab titles

netw3rker’s picture

Issue summary: View changes
Status: Active » Closed (fixed)
netw3rker’s picture