mycognitive / ads_features

Provides common features for ads distribution.
http://drupal.org/project/ads_features
1 stars 4 forks source link

Add 'template path' to alter hook so it won't be overridden by Features. #82

Open kenorb opened 10 years ago

kenorb commented 10 years ago

Currently our ads_search_views_api() gets overridden on Feature Update (drush -y fu ads_search), so we need to move 'template path' to different hook.

See: https://www.drupal.org/node/1493908#comment-7557211

File: ads_search/ads_search.features.inc

-  return array(
-    "api" => "3.0",
-    'template path' => drupal_get_path('module', 'ads_search') . '/theme',
-  );
+  return array("api" => "3.0");

But change should be done in: ads_search.module

Not sure how to test it yet, the easiest way would be by probably clearing cache in Performance and see if the function is called properly (by some exit; in it).