How to customize a contributed module's template I have a contributed module with a theme file in the module's directory. I want to change it a bit by creating a template file in my custom theme directory. I thought I could just copy and paste the template file into the directory and it would be overridden. That doesn't work, so what am I missing?

Here is the implementation of hook_theme() that's in the .module file:

function wunderground_api_theme() {
  return array(
    'wunderground_api_block' =&gt; array(
      'template' =&gt; 'wunderground_block',
      'variables' =&gt; array(
        'weather_data' =&gt; NULL,
      ),
    ),
  );
}
To apply changes in templates, you must first rebuild Drupal's theme registry.

Navigate to /admin/config/development/performance and click on "Clear all caches" button.