function tripal_library_node_info

2.x tripal_library.chado_node.inc tripal_library_node_info()
3.x tripal_library.chado_node.inc tripal_library_node_info()
1.x tripal_library.module tripal_library_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_library/includes/tripal_library.chado_node.inc, line 15
Implements the library node content type

Code

function tripal_library_node_info() {
  $nodes = array();
  $nodes['chado_library'] = array(
    'name' => t('Library'),
    'base' => 'chado_library',
    'description' => t('A library from the chado database'),
    'has_title' => TRUE,
    'locked' => TRUE,
    'chado_node_api' => array(
      'base_table' => 'library',
      'hook_prefix' => 'chado_library',
      'record_type_title' => array(
        'singular' => t('Library'),
        'plural' => t('Libraries')
      ),
      'sync_filters' => array(
        'type_id' => TRUE,
        'organism_id' => TRUE
      ),
    )
  );
  return $nodes;
}