function kaltura_variable_get_real in Kaltura 6
Same name and namespace in other branches
- 5 includes/kaltura.admin.inc \kaltura_variable_get_real()
- 6.2 includes/kaltura.admin.inc \kaltura_variable_get_real()
- 7.3 includes/kaltura.admin.inc \kaltura_variable_get_real()
- 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 733
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);
}