You are here

function drd_server_domain_list_updates in Drupal Remote Dashboard Server 7

Same name and namespace in other branches
  1. 6.2 drd_server.domain.inc \drd_server_domain_list_updates()
  2. 6 drd_server.domain.inc \drd_server_domain_list_updates()
  3. 7.2 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 82

Code

function drd_server_domain_list_updates($sid) {
  $user = drd_server_load_user($sid);
  if (is_string($user)) {
    return drd_server_error($user);
  }
  if (!module_exists('update')) {
    module_enable(array(
      'update',
    ));
  }
  module_load_include('inc', 'update', 'update.fetch');
  module_load_include('inc', 'update', 'update.manager');
  _update_refresh();
  $context = array();
  update_fetch_data_batch($context);
  $form = drupal_get_form('update_manager_update_form', 'report');
  $result = array(
    'msg' => theme('status_messages'),
    'upd' => drupal_render($form),
  );
  return drd_server_result('list.updates', $result);
}