You are here

function cer_install in Corresponding Entity References 7.3

Implements hook_install().

1 call to cer_install()
cer_update_7005 in ./cer.install
Creates the {cer_preset} table to store CerPreset entities, and rebuilds legacy presets.

File

./cer.install, line 51
Install file providing corresponding entity reference schema.

Code

function cer_install() {
  field_info_cache_clear();
  $fields = _cer_field_definitions();
  array_walk($fields, 'field_create_field');
  $instances = _cer_field_instance_definitions();
  array_walk($instances, 'field_create_instance');
  if (module_exists('corresponding_node_references')) {
    _cer_hijack_cnr();
  }
}