arguments); //eksc- could stand better use of module settings and fewer hardcoded paths. $vars['xml_filename'] = variable_get('file_public_path', conf_path() . '/files') . '/tripal/tripal_blast/' . $job_args['output_filename'] . '.blast.xml'; $vars['tsv_filename'] = variable_get('file_public_path', conf_path() . '/files') . '/tripal/tripal_blast/' . $job_args['output_filename'] . '.blast.tsv'; $vars['html_filename'] = variable_get('file_public_path', conf_path() . '/files') . '/tripal/tripal_blast/' . $job_args['output_filename'] . '.blast.html'; // Add the blast database node. // This is needed for link-out functionality. $vars['blastdb'] = get_blast_database(array('path' => $job_args['database'])); //@deepaksomanadh: code added to use the persisted data in the template file. $job_id = $vars['job_id']; $job_data = variable_get('job_data', ''); $vars['job_id_data'] = $job_data[$job_id]; } /** * Implements hook_theme_registery_alter(). */ function blast_ui_theme_registry_alter(&$theme_registry) { $theme_registry_copy = $theme_registry; $module_path = drupal_get_path('module', 'blast_ui') . '/theme'; _theme_process_registry($theme_registry_copy, 'phptemplate', 'theme_engine', 'my_custom_theme', $module_path); $theme_registry += array_diff_key($theme_registry_copy, $theme_registry); // A list of templates the module will provide templates for $hooks = array('page'); foreach ($hooks as $hook) { // Add the key 'theme paths' if it doesn't exist in this theme's registry if (!isset($theme_registry[$hook]['theme paths'])) { $theme_registry[$hook]['theme paths'] = array(); } // Shift this module's directory to the top of the theme path list if (is_array($theme_registry[$hook]['theme paths'])) { $first_element = array_shift($theme_registry[$hook]['theme paths']); if ($first_element) { array_unshift($theme_registry[$hook]['theme paths'], $first_element, $module_path); } else { array_unshift($theme_registry[$hook]['theme paths'], $module_path); } } } }