function tripal_core_init
2.x tripal_core.module | tripal_core_init() |
3.x tripal_core.module | tripal_core_init() |
1.x tripal_core.module | tripal_core_init() |
Implements hook_init(). Used to set the search_path, create default content and set default variables.
Related topics
File
- legacy/
tripal_core/ tripal_core.module, line 41 - The Tripal Core module
Code
function tripal_core_init() {
// If we want AHAH elements on the node forms (e.g. chado_pub form) then we need to include
// the node.pages file. Otherwise this error message is given:
//
// warning: call_user_func_array() expects parameter 1 to be a valid callback,
// function 'node_form' not found or invalid function name
// in /var/www/includes/form.inc on line 382.
module_load_include('inc', 'node', 'node.pages');
}