You are here

function rules_enable_items in Rules 6

Used to inform the rules engine about an added item type, so it can create the db table if necessary

File

rules/rules.module, line 847
Rules engine module

Code

function rules_enable_items($item_type, $ret = array()) {
  $info = rules_get_items($item_type);
  if (!db_table_exists($info['db_table'])) {
    $schema = drupal_get_schema($info['db_table'], TRUE);
    db_create_table($ret, $info['db_table'], $schema);
  }
}