Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save PunchRockgroin/6021409 to your computer and use it in GitHub Desktop.
Save PunchRockgroin/6021409 to your computer and use it in GitHub Desktop.
Prevent Update for custom modules
<?php
/**
* @file
* <my_module>.exclude_from_update_list.inc
*/
/**
* Implements hook_update_projects_alter().
*/
function my_module_update_projects_alter(&$projects) {
unset($projects['my_module']);
}
<?php
include_once('my_module.exclude_from_update_list.inc');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment