function tripal_pub_node_info
2.x tripal_pub.chado_node.inc | tripal_pub_node_info() |
3.x tripal_pub.chado_node.inc | tripal_pub_node_info() |
1.x tripal_pub.module | tripal_pub_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_pub/
includes/ tripal_pub.chado_node.inc, line 17 - Implements Drupal Node hooks to create the chado_analysis node content type.
Code
function tripal_pub_node_info() {
$nodes = array();
$nodes['chado_pub'] = array(
'name' => t('Publication'),
'base' => 'chado_pub',
'description' => t('A publication from the Chado database'),
'has_title' => TRUE,
'locked' => TRUE,
'chado_node_api' => array(
'base_table' => 'pub',
'hook_prefix' => 'chado_pub',
'record_type_title' => array(
'singular' => t('Publication'),
'plural' => t('Publications')
),
'sync_filters' => array(
'type_id' => FALSE,
'organism_id' => FALSE,
),
),
);
return $nodes;
}