function casetracker_default_assign_to in Case Tracker 7
Same name and namespace in other branches
- 6 casetracker.module \casetracker_default_assign_to()
Fetch the proper default assignee.
5 calls to casetracker_default_assign_to()
- 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_get_name in ./
casetracker.module - 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().
- casetracker_settings in ./
casetracker_admin.inc - Configures the various Case Tracker options; system_settings_form().
- casetracker_user_options in ./
casetracker.module - API function that returns valid user options.
- casetracker_views_handler_filter_user_options::get_value_options in includes/
casetracker_views_handler_filter_user_options.inc - Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.
3 string references to 'casetracker_default_assign_to'
- casetracker_actions_set_assign_to_action_form in casetracker_actions/
casetracker_actions.module - Select a user to assign for the Set Assign to action.
- casetracker_uninstall in ./
casetracker.install - Implements hook_uninstall().
- casetracker_user_options in ./
casetracker.module - API function that returns valid user options.
File
- ./
casetracker.module, line 1355 - Enables the handling of projects and their cases.
Code
function casetracker_default_assign_to() {
$assign_to = variable_get('casetracker_default_assign_to', t('Unassigned'));
if ($assign_to == variable_get('anonymous', t('Anonymous'))) {
return t('Unassigned');
}
return $assign_to;
}