You are here

function entity_legal_install in Entity Legal 7

Same name and namespace in other branches
  1. 7.2 entity_legal.install \entity_legal_install()

Implements hook_install().

File

./entity_legal.install, line 33
Install, update and uninstall functions for the entity_legal module.

Code

function entity_legal_install() {

  // Adapted from node module.
  $body_field = array(
    'field_name' => 'entity_legal_document_text',
    'type' => 'text_with_summary',
    'module' => 'text',
    'cardinality' => 1,
    'entity_types' => array(
      'entity_legal_document_version',
    ),
    'translatable' => TRUE,
  );
  _update_7000_field_create_field($body_field);
}