Skip to content
Snippets Groups Projects
  1. Oct 18, 2018
  2. Dec 14, 2017
  3. Nov 23, 2017
  4. May 08, 2017
  5. Apr 28, 2017
    • Romanos Dodopoulos's avatar
      Remove centrally managed module/theme from update · bdd38237
      Romanos Dodopoulos authored
      Implement hook_update_projects_alter() to remove all centrally managed
      modules and themes from the Update manager. Those which are located
      under ^sites/all/.
      
      The hook doesn't work for modules whose module name does not match the
      project name. A workaround would be far more extended than these few
      lines of code. Another workaround would be to remove them individually
      which wouldn't be extensible. So the best option is to follow a policy
      to always match the module and project names (see
      https://www.drupal.org/node/2821041 and DRUPAL-76)
      
      The list_themes() function makes the unset operation easier for themes
      because it returns a list of objects with all the related information
      (i.e. path and project name). Still there was an error dues to a
      single theme (cern_default) that isn't related to a project but this
      was fixed with an if condition.
      
      Related to DRUPAL-65.
      bdd38237
  6. Jun 13, 2016
  7. Feb 10, 2016
Loading