function tripal_phylogeny_node_info
2.x tripal_phylogeny.chado_node.inc | tripal_phylogeny_node_info() |
3.x tripal_phylogeny.chado_node.inc | tripal_phylogeny_node_info() |
Implements hook_node_info().
Provide information to drupal about the node types that we're creating in this module.
Related topics
File
- tripal_phylogeny/
includes/ tripal_phylogeny.chado_node.inc, line 16 - Implements the phylotree node content type
Code
function tripal_phylogeny_node_info() {
$nodes = array();
$nodes['chado_phylotree'] = array(
'name' => t('Phylotree'),
'base' => 'chado_phylotree',
'description' => t('A phylotree from the chado database'),
'has_title' => TRUE,
'locked' => TRUE,
'chado_node_api' => array(
'base_table' => 'phylotree',
'hook_prefix' => 'chado_phylotree',
'record_type_title' => array(
'singular' => t('Phylotree'),
'plural' => t('Phylotrees')
),
/* sync_filters: tripal is hardcoded to look for this
sync_filter settings: type_id and organism_id. (phylotree does
not have organism_id but need to set it false anyways. */
'sync_filters' => array(
'type_id' => FALSE,
'organism_id' => FALSE
),
)
);
return $nodes;
}