You are here

function commons_follow_flag_export_alter in Drupal Commons 7.3

Implements hook_flag_export_alter().

File

modules/commons/commons_follow/commons_follow.module, line 148

Code

function commons_follow_flag_export_alter(&$flag) {

  // We export $flag->types as an array in code, then dynamically change
  // the values in commons_follow_flag_alter(). Prevent that from being
  // overwritten with the dynamic values.
  if (in_array($flag['name'], array(
    'commons_follow_node',
    'email_node',
  ))) {
    $flag['types'] = array();
  }
}