-
Notifications
You must be signed in to change notification settings - Fork 0
/
gene_jbrowse_field.module
38 lines (32 loc) · 1.11 KB
/
gene_jbrowse_field.module
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?php
# This is a test module to learn how to add a field.
# The field-related files and directories were generated by
# Statonlab's Tripal Field Generator tool
# and modified to add the fields to the Gene bundle rather than
# the Organism bundle.
# Include the field for the JBrowse linkout from Gene pages
include('includes/gene_jbrowse_field.fields.inc');
/**
* Implements hook_menu()
*
* Define the menu!
*/
function gene_jbrowse_field_menu()
{
$items = array();
/**
* Main configuration
*
*/
$items['admin/tripal/extension/gene_jbrowse_field/config'] = array(
'title' => 'Gene JBrowse Field Configuration',
'description' => 'Configuration for the Gene JBrowse Field module',
'page callback' => 'drupal_get_form',
'page arguments'=> array('gene_jbrowse_field_config_form'),
'type' => MENU_NORMAL_ITEM,
'file' => 'includes/admin/gene_jbrowse_field_config.inc',
'file path' => drupal_get_path('module','gene_jbrowse_field'),
'access arguments' => array('administer gene jbrowse field'),
);
return $items;
}