function tripal_db_set_active

2.x tripal_core.DEPRECATED.api.inc tripal_db_set_active($dbname = 'default')
3.x tripal_core.DEPRECATED.inc tripal_db_set_active($dbname = 'default')
1.x tripal_core_chado.api.inc tripal_db_set_active($dbname = 'default')

Deprecated

Restructured API to make naming more readable and consistent. Function was deprecated in Tripal 2.0 and will be removed 2 releases from now. This function has been replaced by chado_set_active().

See also

chado_set_active().

File

tripal_core/api/tripal_core.DEPRECATED.api.inc, line 1307
Contains all the deprecated functions to keep the tripal api backwards compatible.

Code

function tripal_db_set_active($dbname = 'default') {
  tripal_report_error(
  'tripal_deprecated', 
  TRIPAL_NOTICE, 
  "DEPRECATED: %old_function has been replaced with %new_function. Please update your code.", 
  array(
    '%old_function' => 'tripal_db_set_active',
    '%new_function' => 'chado_set_active'
  )
  );

  //New API Function
  return chado_set_active($dbname);
}