function casetracker_get_name in Case Tracker 5
Same name and namespace in other branches
- 6 casetracker.module \casetracker_get_name()
- 7 casetracker.module \casetracker_get_name()
Given a uid, returns the name of that account. If the passed uid is not found, returns the default "assign to" name as specified in the settings. @todo This may not always be desired, but is how we use it. See also casetracker_get_uid().
7 calls to casetracker_get_name()
- casetracker_cases_overview in ./
casetracker.module - Menu callback; displays a list of all cases in a table. See the README.txt for the various URLs we support.
- casetracker_case_form_common in ./
casetracker.module - Common form elements for cases, generic enough for use either in a full node display, or in comment displays and updating. Default values are calculated based on an existing $form['nid']['#value'].
- casetracker_comment_changes in ./
casetracker.module - Displays the changes a comment has made to the case fields.
- casetracker_mailhandler in ./
casetracker_mail.module - Implementation of hook_mailhandler().
- casetracker_mail_send in ./
casetracker_mail.module - Sends out emails. Woot! Do people still say woot? Man, I'm old.
File
- ./
casetracker.module, line 1403 - Enables the handling of projects and their cases.
Code
function casetracker_get_name($uid) {
$name = db_result(db_query("SELECT name FROM {users} WHERE uid = %d", $uid));
return $name ? $name : variable_get('casetracker_default_assign_to', variable_get('anonymous', t('Anonymous')));
}