update_is_missing

function update_is_missing

update_is_missing($module, $number, $update_functions)

Determines if a module update is missing or unavailable.

Parameters

$module: The name of the module.

$number: The number of the update within that module.

$update_functions: An organized array of update functions, in the format returned by update_get_update_function_list(). This should represent all module updates that are requested to run at the time this function is called.

Return value

TRUE if the provided module update is not installed or is not in the provided list of updates to run; FALSE otherwise.

File

includes/update.inc, line 1403
Drupal database update API.

Code

function update_is_missing($module, $number, $update_functions) {
  return !isset($update_functions[$module][$number]) || !function_exists($update_functions[$module][$number]);
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!update.inc/function/update_is_missing/7.x

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部