function commons_reputation_install in Drupal Commons 6.2
Implementation of hook_install()
File
- modules/
features/ commons_reputation/ commons_reputation.install, line 6
Code
function commons_reputation_install() {
// Fetch the default badges
module_load_include('inc', 'commons_reputation', 'commons_reputation.badges');
$badges = commons_reputation_default_badges();
// Insert the user badges
commons_reputation_insert_badges($badges);
// Set a default badge for authenticated users
commons_reputation_set_auth_badge($badges);
// Set userpoint thresholds for badges
commons_reputation_set_point_thresholds($badges);
// Add userpoints vocabulary
commons_reputation_insert_vocabulary();
}