function tripal_pub_enable

2.x tripal_pub.install tripal_pub_enable()
3.x tripal_pub.install tripal_pub_enable()
1.x tripal_pub.install tripal_pub_enable()

Implements hook_enable().

Related topics

File

tripal_pub/tripal_pub.install, line 84
Installation of the publication module

Code

function tripal_pub_enable() {
  // make sure we have our supported databases
  tripal_insert_db(
  array(
    'name' => 'PMID',
    'description' => 'PubMed',
    'url' => 'http://www.ncbi.nlm.nih.gov/pubmed',
    'urlprefix' => 'http://www.ncbi.nlm.nih.gov/pubmed/'
  ), 
  array('update_existing' => TRUE)
  );
  tripal_insert_db(
  array(
    'name' => 'AGL',
    'description' => 'USDA National Agricultural Library',
    'url' => 'http://agricola.nal.usda.gov/'
  ), 
  array('update_existing' => TRUE)
  );

  variable_set('tripal_pub_supported_dbs', array('PMID', 'AGL'));
}