function _update_no_data

Same name in other branches
  1. 9 core/modules/update/update.module \_update_no_data()
  2. 8.9.x core/modules/update/update.module \_update_no_data()
  3. 10 core/modules/update/update.module \_update_no_data()
  4. 11.x core/modules/update/update.module \_update_no_data()

Returns a warning message when there is no data about available updates.

2 calls to _update_no_data()
update_requirements in modules/update/update.install
Implements hook_requirements().
update_status in modules/update/update.report.inc
Page callback: Generates a page about the update status of projects.

File

modules/update/update.module, line 368

Code

function _update_no_data() {
    $destination = drupal_get_destination();
    $cron_token = array(
        'token' => drupal_get_token('run-cron'),
    );
    return t('No update information available. <a href="@run_cron">Run cron</a> or <a href="@check_manually">check manually</a>.', array(
        '@run_cron' => url('admin/reports/status/run-cron', array(
            'query' => $cron_token + $destination,
        )),
        '@check_manually' => url('admin/reports/updates/check', array(
            'query' => $destination,
        )),
    ));
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.