You are here

function drd_server_domain_list_updates in Drupal Remote Dashboard Server 6

Same name and namespace in other branches
  1. 6.2 drd_server.domain.inc \drd_server_domain_list_updates()
  2. 7.2 drd_server.domain.inc \drd_server_domain_list_updates()
  3. 7 drd_server.domain.inc \drd_server_domain_list_updates()
1 string reference to 'drd_server_domain_list_updates'
drd_server_xmlrpc in ./drd_server.module
Implementation of hook_xmlrpc().

File

./drd_server.domain.inc, line 67

Code

function drd_server_domain_list_updates($sid) {
  $user = drd_server_load_user($sid);
  if (is_string($user)) {
    return drd_server_error($user);
  }
  module_load_include('inc', 'update', 'update.fetch');
  module_load_include('inc', 'update', 'update.report');
  if (_update_refresh()) {
    drupal_set_message(t('Attempted to fetch information about all available new releases and updates.'));
  }
  else {
    drupal_set_message(t('Unable to fetch any information about available new releases and updates.'), 'error');
  }
  $result = array(
    'msg' => theme('status_messages'),
    'upd' => update_status($form),
  );
  return drd_server_result('list.updates', $result);
}