You are here

function heartbeat_features_revert in Heartbeat 6.4

Implementation of hook_features_revert().

File

./heartbeat.features.inc, line 111
Features support.

Code

function heartbeat_features_revert($module = NULL) {

  // Load heartbeat.admin.inc
  require_once drupal_get_path('module', 'heartbeat') . '/heartbeat.admin.inc';

  // Get default heartbeats from feature
  if (module_hook($module, 'heartbeat_message_info')) {
    $heartbeats = module_invoke($module, 'heartbeat_message_info');
    foreach ($heartbeats as $heartbeat) {
      heartbeat_messages_revert($heartbeat['message_id']);
    }
  }
}