I am using Drupal's domain access module to create micro sites in a white label system. Is there a way of automatically creating nodes with default content for each site?
I am using Drupal's domain access module to create micro sites in a white label system. Is there a way of automatically creating nodes with default content for each site?
Use hook_domain_insert() this will give you the id of the domain that has just been created in the $domain array. Then you can create a node as follows: