You are here

function kaltura_requirements in Kaltura 5

Same name and namespace in other branches
  1. 6.2 kaltura.install \kaltura_requirements()
  2. 6 kaltura.install \kaltura_requirements()
  3. 7.3 kaltura.install \kaltura_requirements()
  4. 7.2 kaltura.install \kaltura_requirements()

File

./kaltura.install, line 267

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;
}