Tripal Plant PopGen Submit
|
Go to the source code of this file.
Functions | |
tpps_access () | |
tpps_block_info () | |
tpps_block_view_alter (&$data, $block) | |
tpps_cronapi () | |
tpps_element_info_alter (&$type) | |
tpps_form_alter (&$form, &$form_state, $form_id) | |
tpps_leaves (array &$elements, array $vals, array $saved_vals) | |
tpps_mail ($key, array &$message, array $params) | |
tpps_main (array $form, array &$form_state, $accession=NULL) | |
tpps_main_submit ($form, &$form_state) | |
tpps_main_validate (&$form, &$form_state) | |
tpps_managed_file_process (array $element, array &$form_state, array $form) | |
tpps_media_browser_plugins_alter (&$plugins) | |
tpps_menu () | |
tpps_page_build (&$page) | |
tpps_permission () | |
tpps_snpassay_file_selector ($string) | |
Variables | |
const | TPPS_CSS_PATH '/css/tpps.css' |
const | TPPS_JS_PATH '/js/tpps.js' |
const | TPPS_MAJOR_VERSION 1 |
const | TPPS_MINOR_VERSION 2 |
const | TPPS_OLS_BASE "http://www.ebi.ac.uk/ols/api/" |
const | TPPS_PAGE_1 1 |
const | TPPS_PAGE_2 2 |
const | TPPS_PAGE_3 3 |
const | TPPS_PAGE_4 4 |
const | TPPS_TEMP_XLSX "temporary://tpps_xlsx" |
const | TPPS_TEMP_ZIP "temporary://tpps_zip" |
Core of the TPPS module.
Definition in file tpps.module.
tpps_access | ( | ) |
Determine whether the current user has a specific permission.
stdClass $user The user in question.
Definition at line 341 of file tpps.module.
tpps_block_info | ( | ) |
Implements hook_block_info().
Adds the tpps_status block.
Definition at line 1096 of file tpps.module.
tpps_block_view_alter | ( | & | $data, |
$block | |||
) |
Implements hook_block_view_alter().
This function populates the TPPS Status Bar block with data that has already been collected through the form.
Definition at line 1112 of file tpps.module.
tpps_cronapi | ( | ) |
Inform Ultimate Cron about cron jobs.
Updates TPPS landing page once per day.
Definition at line 416 of file tpps.module.
tpps_element_info_alter | ( | & | $type | ) |
Implements hook_element_info_alter().
Adds process callback tpps_managed_file_process to managed_file elements, and extends the maximum length for textfields.
Definition at line 518 of file tpps.module.
tpps_form_alter | ( | & | $form, |
& | $form_state, | ||
$form_id | |||
) |
Implements hook_form_alter().
Initializes form state values and saved_values to empty arrays, and calls the tpps_leaves function, which populates most default values.
Definition at line 679 of file tpps.module.
tpps_leaves | ( | array & | $elements, |
array | $vals, | ||
array | $saved_vals | ||
) |
Populates default values for most form fields.
array | $elements | An array of the elements needing default values. |
array | $vals | An array of form_state values. |
array | $saved_vals | An array of form_state saved_values. |
Definition at line 704 of file tpps.module.
tpps_mail | ( | $key, | |
array & | $message, | ||
array | $params | ||
) |
Implements hook_mail().
Populates emails for submission status updates.
Definition at line 451 of file tpps.module.
tpps_main | ( | array | $form, |
array & | $form_state, | ||
$accession = NULL |
|||
) |
This function creates the main TPPS form.
Loads query parameters, ensures the user is logged in, loads old form and form_state information, and calls the appropriate page function.
array | $form | The actual TPPS form. |
array | $form_state | The state of the TPPS form - note that this may be overwritten if the user is loading an old form. |
stdClass $user The user trying to access the TPPS form.
Definition at line 821 of file tpps.module.
tpps_main_submit | ( | $form, | |
& | $form_state | ||
) |
Implements hook_form_submit().
This function handles the multi-step aspect of the form, as well as saving input to persistent variables so they can be reloaded later.
Definition at line 1006 of file tpps.module.
tpps_main_validate | ( | & | $form, |
& | $form_state | ||
) |
Implements hook_form_validate().
Validates input to form. Also saves file column information so it is not lost if the input is not valid.
Definition at line 948 of file tpps.module.
tpps_managed_file_process | ( | array | $element, |
array & | $form_state, | ||
array | $form | ||
) |
Extends the managed_file element type.
Provides options for users to define the columns in their file, as well as a preview of the first 3 rows of the file.
array | $element | The existing managed_file form element. |
array | $form_state | The state of the form. |
array | $form | The existing form, including the managed_file element being changed. |
Definition at line 541 of file tpps.module.
tpps_media_browser_plugins_alter | ( | & | $plugins | ) |
Definition at line 1284 of file tpps.module.
tpps_menu | ( | ) |
tpps_page_build | ( | & | $page | ) |
Implements hook_page_build().
Adds the side bar to TPPS form pages before they are rendered.
Definition at line 774 of file tpps.module.
tpps_permission | ( | ) |
Implements hook_permission().
Defines custom TPPS permissions.
Definition at line 291 of file tpps.module.
tpps_snpassay_file_selector | ( | $string | ) |
const TPPS_CSS_PATH '/css/tpps.css' |
Definition at line 11 of file tpps.module.
const TPPS_JS_PATH '/js/tpps.js' |
Definition at line 10 of file tpps.module.
const TPPS_MAJOR_VERSION 1 |
Definition at line 8 of file tpps.module.
const TPPS_MINOR_VERSION 2 |
Definition at line 9 of file tpps.module.
const TPPS_OLS_BASE "http://www.ebi.ac.uk/ols/api/" |
Definition at line 18 of file tpps.module.
const TPPS_PAGE_1 1 |
Definition at line 12 of file tpps.module.
const TPPS_PAGE_2 2 |
Definition at line 13 of file tpps.module.
const TPPS_PAGE_3 3 |
Definition at line 14 of file tpps.module.
const TPPS_PAGE_4 4 |
Definition at line 15 of file tpps.module.
const TPPS_TEMP_XLSX "temporary://tpps_xlsx" |
Definition at line 16 of file tpps.module.
const TPPS_TEMP_ZIP "temporary://tpps_zip" |
Definition at line 17 of file tpps.module.