Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I've made some hacks to a contributed module (and perhaps broke a cardinal sin) due to the level of customization required and lack of overriding options in the module (inadequate hooks) inevitably.

This module belongs to a project comprising multiple modules and I wish to remove one specific module which I've hacked from being updated. I used hook_update_projects_alter to unset the project from the list after checking this question. But is it possible in any way to prevent only my specific hacked module from not being updated while the other modules in the project to be updated.

Example: If the project was ctools and the module I hacked is ctools_ajax_sample my code

/**
 * Implementation of hook_update_projects_alter
 */
function my_custom_module_update_projects_alter(&$projects) {
  unset($projects['ctools']);
}

removes the whole project from being listed in the update which I believe is the actual behaviour. But what I wish to know is if I could make ctools_ajax_sample immune to update while the rest of the modules in package could enjoy benifit of updating to latest version. Any suggestion and clarification in going about this would be appreciated and please feel free to correct me if I'm wrong.

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.