1234567891011121314151617181920212223242526272829 |
- <?php
- /**
- * @file
- * This file contains functions specifically related to theme-ing the BLAST module
- */
- /**
- * Preprocess function for the show_blast_report.tpl.php
- *
- * Use this function to prepare variables for use in the template,
- * as well as to add css/javascript needed.
- *
- * @param $vars
- * The variables currently available to the template.
- */
- function blast_ui_preprocess_show_blast_report(&$vars) {
- // Add CSS and Javascript files
- $path = drupal_get_path('module', 'blast_ui');
- drupal_add_css($path . '/theme/blast_report.css');
- drupal_add_js('http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js');
- // Get the filename of the BLAST results
- $job = tripal_get_job($vars['job_id']);
- $job_args = unserialize($job->arguments);
- $vars['xml_filename'] = 'public://' . $job_args['output_filename'];
- }
|