function _user_progress_get_value

cis7 user_progress.module _user_progress_get_value($uprid, $uid)
cle7 user_progress.module _user_progress_get_value($uprid, $uid)
elmsmedia7 user_progress.module _user_progress_get_value($uprid, $uid)
icor7 user_progress.module _user_progress_get_value($uprid, $uid)
meedjum_blog7 user_progress.module _user_progress_get_value($uprid, $uid)
mooc7 user_progress.module _user_progress_get_value($uprid, $uid)

Helper function to get a value for an activity of a user

File

sites/all/modules/elmsln_contrib/user_progress/user_progress.module, line 439
Hooks provided by Regions.

Code

function _user_progress_get_value($uprid, $uid) {
  return db_query("SELECT value FROM {user_progress_records} WHERE uprid = :uprid AND uid = :uid", array(':uprid' => $uprid, ':uid' => $uid))->fetchField();
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.