function chado_phylotree_validate_newick_format

2.x tripal_phylogeny.chado_node.inc chado_phylotree_validate_newick_format(stdClass $file)
3.x tripal_phylogeny.chado_node.inc chado_phylotree_validate_newick_format(stdClass $file)

A validation function for checking the newick file format.

Parameters

stdClass $file: A Drupal file object.

1 string reference to 'chado_phylotree_validate_newick_format'
chado_phylotree_form in tripal_phylogeny/includes/tripal_phylogeny.chado_node.inc
Implementation of hook_form().

File

tripal_phylogeny/includes/tripal_phylogeny.chado_node.inc, line 326
Implements the phylotree node content type

Code

function chado_phylotree_validate_newick_format(stdClass $file) {
  // An array of strings where each string represents a unique error
  // when examining the file.
  $errors = array();

  // TODO: check the newick file format for errors.

  return $errors;
}