$property_id, ); return chado_delete_record($basetable.'prop', $match); } /** * @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 @see chado_delete_property(). */ function tripal_core_delete_property($basetable, $record_id, $property, $cv_name) { //New API Function // D7 @todo: change parameters return chado_delete_property($basetable, $record_id, $property, $cv_name); } /** * @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 @see chado_get_property(). */ function tripal_core_get_property($basetable, $record_id, $property, $cv_name) { //New API Function return chado_get_property($basetable, $record_id, $property, $cv_name); } /** * @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 @see chado_get_table_max_rank(). */ function tripal_core_get_max_chado_rank($tablename, $where_options) { //New API Function return chado_get_table_max_rank($tablename, $where_options); } /** * @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 @see chado_insert_property(). */ function tripal_core_insert_property($basetable, $record_id, $property, $cv_name, $value, $update_if_present = 0) { //New API Function return chado_insert_property($basetable, $record_id, $property, $cv_name, $value, $update_if_present); } /** * @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 @see chado_update_property(). */ function tripal_core_update_property_by_id($basetable, $record_id, $property, $cv_name, $value) { //New API Function return chado_update_property($basetable, FALSE, $property, $cv_name, $value, FALSE, $record_id); } /** * @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 @see chado_update_property(). */ function tripal_core_update_property($basetable, $record_id, $property, $cv_name, $value, $insert_if_missing = 0) { //New API Function // D7 @todo: change parameters return chado_update_property($basetable, $record_id, $property, $cv_name, $value, $insert_if_missing); } /** * @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 @see chado_create_custom_table(). */ function tripal_core_create_custom_table($table, $schema, $skip_creation = 1) { //New API Function return chado_create_custom_table($table, $schema, $skip_creation); } /** * @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 @see chado_edit_custom_table(). */ function tripal_core_edit_custom_table($table_id, $table_name, $schema, $skip_creation = 1) { //New API Function return chado_edit_custom_table($table_id, $table_name, $schema, $skip_creation); } /** * @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 @see chado_get_custom_table_id(). */ function tripal_custom_tables_get_table_id($table_name) { //New API Function return chado_get_custom_table_id($table_name); } /** * @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 @see chado_get_custom_table_schema(). */ function tripal_get_chado_custom_schema($table) { //New API Function return chado_get_custom_table_schema($table); } /** * @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 @see chado_is_installed(). */ function tripal_core_is_chado_installed() { //New API Function return chado_is_installed(); } /** * @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 @see chado_get_schema(). */ function tripal_core_get_chado_table_schema($table) { //New API Function return chado_get_schema($table); } /** * @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 @see chado_get_version(). */ function tripal_core_get_chado_version($exact = FALSE, $warn_if_unsupported = FALSE) { //New API Function return chado_get_version($exact, $warn_if_unsupported); } /** * @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 @see chado_set_active(). */ function tripal_db_set_active($dbname = 'default') { //New API Function return chado_set_active($dbname); } /** * @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 @see chado_is_local(). */ function tripal_core_is_chado_local() { //New API Function return chado_is_local(); } /** * @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 @see chado_get_table_names(). */ function tripal_core_get_chado_tables($include_custom = NULL) { //New API Function return chado_get_table_names($include_custom); } /** * @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 @see chado_is_local(). */ function tripal_core_chado_schema_exists() { //New API Function return chado_is_local(); } /** * @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 @see chado_dbschema_exists(). */ function tripal_core_schema_exists($schema) { //New API Function return chado_dbschema_exists($schema); } /** * @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 @see tripal_set_admin_message(). * function theme_tripal_admin_message($variables) { //New API Function return tripal_set_admin_message(); } */ /** * @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 @see tripal_report_error(). */ function tripal_core_report_error($type, $severity, $message, $variables = array(), $options = array()) { //New API Function return tripal_report_error($type, $severity, $message, $variables, $options); }