By jgroszko on
So I'm writing my first module, and I have my installation SQL written up in a separate file. I've seen some other modules do this (events) but then there's another copy of the SQL in the theme.install file. I was wondering if there was a Drupal way to read in the SQL from a file and pass it to db_query, or is it standard to only have a copy of the SQL in the theme.install file? It'd be nice to just have a clean copy of the SQL that isn't butchered together with PHP concats.