Unfortunately, there is no API way to programatically enable a theme in Drupal 6, therefore you have to use a direct query:
db_query("UPDATE {system} SET status = 1 WHERE type = 'theme' and name = '%s'", $theme);
Jakub is owner and founder of Dynamite Heads. Jakub is a member of Drupal Security Team and supports Czech Drupal community at Drupal.cz









Post new comment