I am currenty working on a custom installation profile that enables modules, performs some db queries and so forth.
It also sets my default theme and admin_theme...
Nothing too special ;-)
I have 2 db_update queries as well, located in my .install file.
The first one works perfectly
// Enable the admin theme. db_update('system') ->fields(array('status' => 1)) ->condition('type', 'theme') ->condition('name', 'rubik') ->execute();
The second one gets 'ignored'
// Locate menus is right regions db_update('block') ->fields(array('status' => 1, 'region' => 'sidebar_first')) ->condition('delta','menu-left-menu') ->condition('theme', 'mytheme') ->execute();
I have tried the last query with devel/php and then everything works perfectly.
What am i missing?
When i put the query in a .module file it works as well...
Thanks for any advice!