<?php

function scratchpads_contact_install(){
  // Add report abuse form
  $t = get_t();
  db_insert('contact')->fields(array(
    'category' => $t('Report abuse'),
    'recipients' => 'site-email-address@scratchpads.org, scratchpad@nhm.ac.uk',
    'selected' => 1,
    'reply' => ''
  ))->execute();
  // Update the feedback form
  db_update('contact')->fields(array(
    'category' => $t('Contact us'),
    'recipients' => 'site-email-address@scratchpads.org'
  ))->condition('cid', 1)->execute();
}

function scratchpads_contact_uninstall(){
  db_delete('contact')->condition('category', 'Report abuse')->execute();
}
