It's because Views module has default weight 10, this module have 0.

Please try this patch to views_attach.install file:

/**
 * Implementation of hook_install().
 */
function views_attach_install() {
   // Set the weight of booking_timeslots module to be one higher than calendars.
   $weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE name = 'views'"));
   db_query("UPDATE {system} SET weight = %d WHERE name = 'views_attach'", $weight + 1);
}

Comments

kenorb’s picture

Cleaned up:

/**
* Implementation of hook_install().
*/
function views_attach_install() {
   $weight = (int) db_result(db_query("SELECT weight FROM {system} WHERE name = 'views'"));
   db_query("UPDATE {system} SET weight = %d WHERE name = 'views_attach'", $weight + 1);
}
kenorb’s picture

Status: Needs review » Closed (fixed)

I think I mess up something during the migration.
It's working without this I think.