You are here

function relation_install in Relation 7

Create our field.

1 string reference to 'relation_install'
relation_type_ensure_instance in ./relation.module
Make sure the instance exists for this type.

File

./relation.install, line 11
Installation functions for Relation module.

Code

function relation_install() {
  $install =& drupal_static('relation_install');
  $install = TRUE;
  $field = array(
    'field_name' => 'endpoints',
    'cardinality' => FIELD_CARDINALITY_UNLIMITED,
    'type' => 'relation_endpoint',
  );
  field_info_cache_clear();
  field_create_field($field);
  $install = FALSE;
  entity_info_cache_clear();
}