function tripal_project_node_info

2.x tripal_project.chado_node.inc tripal_project_node_info()
3.x tripal_project.chado_node.inc tripal_project_node_info()
1.x tripal_project.module tripal_project_node_info()

Implementation of hook_node_info().

This node_info, is a simple node that describes the functionallity of the module. It specifies that the title(Project Name) and body(Description) set to true so that they information can be entered

Related topics

File

legacy/tripal_project/includes/tripal_project.chado_node.inc, line 16
Implement the project node content type

Code

function tripal_project_node_info() {
  return array(
    'chado_project' => array(
      'name' => t('Project'),
      'base' => 'chado_project',
      'description' => t('A project from the Chado database'),
      'has_title' => TRUE,
      'locked' => TRUE,
      'chado_node_api' => array(
        'base_table' => 'project',
        'hook_prefix' => 'chado_project',
        'record_type_title' => array(
          'singular' => t('Project'),
          'plural' => t('Projects')
        ),
        'sync_filters' => array(
          'type_id' => FALSE,
          'organism_id' => FALSE
        ),
      ),
    ),
  );
}