function contact_install

Implements hook_install().

File

modules/contact/contact.install, line 70

Code

function contact_install() {
    // Insert a default contact category.
    db_insert('contact')->fields(array(
        'category' => 'Website feedback',
        'recipients' => variable_get('site_mail', ini_get('sendmail_from')),
        'selected' => 1,
        'reply' => '',
    ))
        ->execute();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.