function tripal_update_7304

3.x tripal.install tripal_update_7304()

Adds a variable for the bundles to manage hiding of empty fields.

File

tripal/tripal.install, line 1032
Contains functions used to install/uninstall tripal.

Code

function tripal_update_7304() {
  $transaction = db_transaction();
  try {
    tripal_insert_variable(
    'hide_empty_field', 
    'Structure->Tripal Content Type->edit checkbox to hide empty fields for that bundle.'
    );
  }
  catch (\PDOException $e) {
    $transaction->rollback();
    $error = $e->getMessage();
    throw new DrupalUpdateException('Could not perform update: ' . $error);
  }
}