function tripal_analysis_node_info

2.x tripal_analysis.chado_node.inc tripal_analysis_node_info()
3.x tripal_analysis.chado_node.inc tripal_analysis_node_info()
1.x tripal_analysis.module tripal_analysis_node_info()

Implements hook_node_info().

Provide information to drupal about the node types that we're creating in this module

File

legacy/tripal_analysis/includes/tripal_analysis.chado_node.inc, line 17
Implements Drupal Node hooks to create the chado_analysis node content type.

Code

function tripal_analysis_node_info() {
  $nodes = array();
  $nodes['chado_analysis'] = array(
    'name' => t('Analysis'),
    'base' => 'chado_analysis',
    'description' => t('An analysis'),
    'has_title' => TRUE,
    'locked' => TRUE,
    'chado_node_api' => array(
      'base_table' => 'analysis',
      'hook_prefix' => 'chado_analysis',
      'record_type_title' => array(
        'singular' => t('Analysis'),
        'plural' => t('Analyses')
      ),
      'sync_filters' => array(
        'type_id' => FALSE,
        'organism_id' => FALSE,
        'checkboxes' => array('name'),
      ),
    )
  );
  return $nodes;
}