You are here

function kaltura_variable_get_real in Kaltura 5

Same name and namespace in other branches
  1. 6.2 includes/kaltura.admin.inc \kaltura_variable_get_real()
  2. 6 includes/kaltura.admin.inc \kaltura_variable_get_real()
  3. 7.3 includes/kaltura.admin.inc \kaltura_variable_get_real()
  4. 7.2 includes/kaltura.admin.inc \kaltura_variable_get_real()
2 calls to kaltura_variable_get_real()
kaltura_settings_form in includes/kaltura.admin.inc
kaltura_test_notification_config in includes/kaltura.admin.inc

File

includes/kaltura.admin.inc, line 720

Code

function kaltura_variable_get_real($var, $default) {
  $sql = 'SELECT * FROM {variable} WHERE name = \'%s\'';
  $result = db_fetch_object(db_query($sql, $var));
  if (!$result) {
    return $default;
  }
  return unserialize($result->value);
}