You are here

function rules_i18n_rules_config_insert in Rules 7.2

Implements hook_rules_config_insert().

2 calls to rules_i18n_rules_config_insert()
hook_rules_config_defaults_rebuild in ./rules.api.php
Act after rebuilding default configurations.
rules_i18n_rules_config_defaults_rebuild in rules_i18n/rules_i18n.module
Implements hook_rules_config_defaults_rebuild().

File

rules_i18n/rules_i18n.module, line 60
Rules i18n integration.

Code

function rules_i18n_rules_config_insert($rules_config) {

  // Do nothing when rebuilding defaults to avoid multiple cache rebuilds.
  // @see rules_i18n_rules_config_defaults_rebuild()
  if (!empty($rules_config->is_rebuild)) {
    return;
  }
  i18n_string_object_update('rules_config', $rules_config);
}