Commit da166b7c authored by Matt Glaman's avatar Matt Glaman

Issue #2687975 by jantoine: Error attempting to alter the...

Issue #2687975 by jantoine: Error attempting to alter the 'collection_products' view when it is not set (#199)
parent 02f2941f
......@@ -199,6 +199,10 @@ function commerce_kickstart_taxonomy_views_default_views() {
* Add specific overrides for the no demo store.
*/
function commerce_kickstart_taxonomy_views_default_views_alter(&$views) {
if (!isset($views['collection_products'])) {
return;
}
$install_demo_store = variable_get('commerce_kickstart_demo_store', FALSE);
if (empty($install_demo_store)) {
$view = &$views['collection_products'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment