? hook-update-status-alter-94154-134.patch ? info-file-alter-217912.patch ? developer/docs-252013-27.patch ? developer/element_val_submit_validate_210463.patch ? developer/fix-groups-215958.patch ? developer/hook_translated_menu_link_alter.patch ? developer/menu_link_alter.patch ? developer/submit_execute_210463.patch ? developer/hooks/hook-help-154064-26.patch ? developer/hooks/hook-help-154064-28.patch ? developer/topics/FAPI-QS-210463-2.patch Index: developer/hooks/core.php =================================================================== RCS file: /cvs/drupal-contrib/contributions/docs/developer/hooks/core.php,v retrieving revision 1.192 diff -u -p -r1.192 core.php --- developer/hooks/core.php 29 Jul 2008 21:55:15 -0000 1.192 +++ developer/hooks/core.php 14 Aug 2008 12:37:56 -0000 @@ -1053,6 +1053,36 @@ function hook_system_info_alter(&$info, } /** + * Alter the information about available updates for projects. + * + * @param $projects + * Reference to an array of information about available updates to each + * project installed on the system. + * + * @see update_calculate_project_data() + */ +function hook_update_status_alter(&$projects) { + $settings = variable_get('update_advanced_project_settings', array()); + foreach ($projects as $project => $project_info) { + if (isset($settings[$project]) && isset($settings[$project]['check']) && + ($settings[$project]['check'] == 'never' || + (isset($project_info['recommended']) && + $settings[$project]['check'] == $project_info['recommended']))) { + $projects[$project]['status'] = UPDATE_NOT_CHECKED; + $projects[$project]['reason'] = t('Ignored from settings'); + if (!empty($settings[$project]['notes'])) { + $projects[$project]['extra'][] = array( + 'class' => 'admin-note', + 'label' => t('Administrator note'), + 'data' => $settings[$project]['notes'], + ); + } + } + } +} + + +/** * Inform the node access system what permissions the user has. * * This hook is for implementation by node access modules. In addition to