2 // $Id: civicrm_member_roles.install,v 1.2.4.2 2008/08/17 21:44:19 posco Exp $
6 * Copyright (C) 2010 Neil Goodman
7 * @license GNU General Public License version 2 or later
10 * Install CiviMember Role Sync database table and provide hook_uninstall.
14 * Implementation of hook_install().
16 function civicrm_member_roles_install() {}
19 * Implemenation of hook_enable()
21 function civicrm_member_roles_enable() {
22 db_query("UPDATE {system} SET weight = 110 WHERE name = 'civicrm_member_roles'");
26 * Implementation of hook_schema().
28 function civicrm_member_roles_schema() {
29 $schema['civicrm_member_roles_rules'] = array(
45 'status_codes' => array(
50 'primary key' => array('rule_id'),
57 * Implementation of hook_uninstall().
59 function civicrm_member_roles_uninstall() {
60 variable_del('civicrm_member_roles_sync_method');