public function LingotekAccount::getStatusText in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::getStatusText()
- 7.2 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::getStatusText()
- 7.3 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::getStatusText()
- 7.4 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::getStatusText()
- 7.5 lib/Drupal/lingotek/LingotekAccount.php \LingotekAccount::getStatusText()
File
- lib/
Drupal/ lingotek/ LingotekAccount.php, line 72 - Defines LingotekAccount.
Class
- LingotekAccount
- A class representing a Lingotek Account
Code
public function getStatusText() {
return $this->status == 'active' ? '<span style="color: green;">' . t('Active') . '</span>' : '<span style="color: red;">' . t('Inactive') . '</span>';
}