public function ChecklistapiChecklist::getLastUpdatedUser in Checklist API 7
Gets the name of the last user to update the checklist.
Return value
string The themed name of the last user to update the checklist, or 'n/a' if there is no record of such a user.
File
- lib/
Drupal/ checklistapi/ ChecklistapiChecklist.php, line 129 - Class for Checklist API checklists.
Class
- ChecklistapiChecklist
- Defines the checklist class.
Code
public function getLastUpdatedUser() {
if (isset($this->savedProgress['#changed_by'])) {
$last_updated_user = user_load($this->savedProgress['#changed_by']);
return theme('username', array(
'account' => $last_updated_user,
));
}
else {
return t('n/a');
}
}