function tripal_stock_node_info

2.x tripal_stock.chado_node.inc tripal_stock_node_info()
3.x tripal_stock.chado_node.inc tripal_stock_node_info()
1.x tripal_stock.module tripal_stock_node_info()

Implements hook_node_info(). Registers a stock node type

Return value

An array describing various details of the node

Related topics

File

tripal_stock/includes/tripal_stock.chado_node.inc, line 15
Stock Node Functionality

Code

function tripal_stock_node_info() {
  return array(
    'chado_stock' => array(
      'name' => t('Stock'),
      'base' => 'chado_stock',
      'description' => t('A Chado Stock is a collection of material that can be sampled and have experiments performed on it.'),
      'has_title' => TRUE,
      'locked' => TRUE,
      'chado_node_api' => array(
        'base_table' => 'stock',
        'hook_prefix' => 'chado_stock',
        'record_type_title' => array(
          'singular' => t('Stock'),
          'plural' => t('Stocks')
        ),
        'sync_filters' => array(
          'type_id' => TRUE,
          'organism_id' => TRUE
        ),
      )
    ),
  );
}