| 1 |
<?php
|
| 2 |
// $Id: wforms.install,v 1.1 2006/06/02 15:32:10 nedjo Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* Implementation of hook_install().
|
| 6 |
*/
|
| 7 |
function wforms_install() {
|
| 8 |
// Ensure the required files are present.
|
| 9 |
$path = drupal_get_path('module', 'wforms');
|
| 10 |
if (!file_exists($path . '/wforms.js')) {
|
| 11 |
drupal_set_message(t('To use wforms, you must <a href="%file">download</a> the <a href="%site">wForms library</a> and copy all its files to %path/lib.', array('%file' => 'http://www.formassembly.com/wForms/v2.0/packed/wForms_2_0p.zip', '%site' => 'http://www.formassembly.com/wForms/', '%path' => $path)), 'error');
|
| 12 |
}
|
| 13 |
}
|