function kaltura_requirements in Kaltura 6
Same name and namespace in other branches
- 5 kaltura.install \kaltura_requirements()
- 6.2 kaltura.install \kaltura_requirements()
- 7.3 kaltura.install \kaltura_requirements()
- 7.2 kaltura.install \kaltura_requirements()
File
- ./
kaltura.install, line 224
Code
function kaltura_requirements($phase) {
$reqs = array();
if (!module_exists('kaltura')) {
return $reqs;
}
$status = variable_get('kaltura_partner_id', '');
if ($status != '' && $status) {
$status = 'Configured';
}
else {
$status = 'Not Configured';
$severity = REQUIREMENT_ERROR;
$desc = 'You did not complete the module configuration. you must configure the module with valid kaltura partner\'s details<br />' . 'Or perform registration. Go to ' . l('kaltura module settings', 'admin/settings/kaltura/general') . ' to complete configuration.';
}
$reqs['kaltura'] = array(
'title' => 'Kaltura module',
'value' => $status,
'severity' => $severity,
'description' => $desc,
);
return $reqs;
}