By thadbry on
I'm trying to setup an installation profile. The _profile_final() hook is not being called. It looks like this:
function medconnect_profile_final()
{
// Define Forums
$forums = array(
"Reviews" => "Leave good or bad reviews here of hospitals, doctors, pharmacies, prescriptions, or anything else.",
"General Talk" => "Talk about anything.",
"Advice" => "Give advice to others that are struggling.",
"Questions & Answers" => "Find answers to common questions or ask one of your own."
);
foreach($forums as $name => $desc)
{
$term = array('name' => $name, 'vid' => 1);
$term['parent'] = array(variable_get('forum_default_container', 0));
taxonomy_save_term($term);
}
// Add a 'site admin' role
db_query("INSERT INTO {role} (name) VALUES ('%s')", 'site admin');
drupal_system_enable('theme', 'sky'); // enable sky theme
variable_set('theme_default', 'sky'); // set default theme to 'sky'
variable_set('user_pictures', 0); // disable user profile pictures
}
None of that seems to be executed. I've also put die(); and exit; commands in there, but nothing happens. The _details and _modules hooks are being called. What am I doing wrong?