function tripal_register_analysis_child

2.x tripal_analysis.api.inc tripal_register_analysis_child($modulename)

Register tripal_analysis_api sub-modules

Parameters

$modulename: The name of the module to be registered as a tripal analysis submodule

Related topics

1 call to tripal_register_analysis_child()
1 string reference to 'tripal_register_analysis_child'

File

tripal_analysis/api/tripal_analysis.api.inc, line 25
Provides functions for managing analysis'.

Code

function tripal_register_analysis_child($modulename) {
  $sql = "SELECT * FROM {tripal_analysis} WHERE modulename = :modname";
  if (!db_query($sql, array(':modname' => $modulename))->fetchField()) {
    $sql = "INSERT INTO {tripal_analysis} (modulename) VALUES (:modname)";
    db_query($sql, array(':modname' => $modulename));
  }
}