function party_pid_label in Party 8.2
Generate the label for a party.
1 string reference to 'party_pid_label'
File
- plugins/
party_name_label/ pid.inc, line 33 - Sample plugin to output just the party id as a label. This is just a proof of concept / example.
Code
function party_pid_label($party) {
return isset($party->pid) ? t('Party @pid', array(
'@pid' => $party->pid,
)) : t('Party');
}