function riddler_install in Captcha Riddler 7
Implementation of hook_install().
File
- ./
riddler.install, line 11 - Install, update and uninstall functions for the Riddler module.
Code
function riddler_install() {
// Set default riddle.
$insert = db_insert('riddler_questions')
->fields(array(
'question',
'answer',
));
$data = array(
'question' => 'Do you like SPAM?',
'answer' => 'No',
);
$insert
->values($data)
->execute();
}