You are here

friendlist_activity.install in Heartbeat 6.3

Same filename and directory in other branches
  1. 6.4 modules/friendlist_activity/friendlist_activity.install

File

modules/friendlist_activity/friendlist_activity.install
View source
<?php

// by Jochen Stals - ONE-agency - www.one-agency.be

/**
 * Implementation of hook_install().
 */
function friendlist_activity_install() {

  // Module weights in core: put heartbeat after heartbeat in the chain.
  db_query("UPDATE {system} SET weight = 51 WHERE name = 'friendlist_activity'");
}

/**
 * Implementation of hook_disable().
 */
function friendlist_activity_disable() {

  // Delete left over messages
  db_query("DELETE FROM {heartbeat_messages} WHERE module = 'friendlist_activity'");
  variable_del('heartbeat_add_friends_to_personal');
}

/**
 * Implementation of hook_enable().
 */
function friendlist_activity_enable() {
  variable_set('heartbeat_add_friends_to_personal', TRUE);
  drupal_set_message(t('Please visit !messages_page to import default heartbeat messages from other modules.', array(
    '!messages_page' => l(t('Heartbeat messages page'), 'admin/build/heartbeat'),
  )));
}

Functions

Namesort descending Description
friendlist_activity_disable Implementation of hook_disable().
friendlist_activity_enable Implementation of hook_enable().
friendlist_activity_install Implementation of hook_install().