function tripal_feature_node_info

2.x tripal_feature.chado_node.inc tripal_feature_node_info()
3.x tripal_feature.chado_node.inc tripal_feature_node_info()
1.x tripal_feature.module tripal_feature_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_feature/includes/tripal_feature.chado_node.inc, line 15
Implementation of hooks to create a feature content type

Code

function tripal_feature_node_info() {
  $nodes = array();

  $nodes['chado_feature'] = array(
    'name' => t('Feature'),
    'base' => 'chado_feature',
    'description' => t('A feature from the chado database'),
    'has_title' => TRUE,
    'locked' => TRUE,
    'chado_node_api' => array(
      'base_table' => 'feature',
      'hook_prefix' => 'chado_feature',
      'record_type_title' => array(
        'singular' => t('Feature'),
        'plural' => t('Features')
      ),
      'sync_filters' => array(
        'type_id' => TRUE,
        'organism_id' => TRUE
      ),
    )
  );
  return $nodes;
}