diff --git a/modules/nyss_403/nyss_403.install b/modules/nyss_403/nyss_403.install index fe075a6f78..c7e53c3a31 100644 --- a/modules/nyss_403/nyss_403.install +++ b/modules/nyss_403/nyss_403.install @@ -5,28 +5,20 @@ * Creates Custom 403 page, and then adds that as default 403 url */ -/** - * Implementation of hook_update(). - */ - - - function nyss_403_install() { + global $user; + $newnode = new stdClass(); $newnode->title = 'Please Login'; $newnode->body = ''; - - global $user; - $newnode->uid = $user->uid; $newnode->name = $user->name; $newnode->type = 'page'; - $newNode->format = 2; // 1 means filtered html, 2 means full html, 3 is php - $newnode->status = 1; // 1 means published + $newnode->format = 2; // 1 means filtered html, 2 means full html, 3 is php + $newnode->status = 1; // 1 means published $newnode->promote = 0; - $newnode = node_submit( $newnode ); - node_save( $newnode ); + $newnode = node_submit($newnode); + node_save($newnode); variable_set('site_403', 'node/1'); - } diff --git a/modules/nyss_403/nyss_403.module b/modules/nyss_403/nyss_403.module index be34bac758..08f5aaa6bc 100644 --- a/modules/nyss_403/nyss_403.module +++ b/modules/nyss_403/nyss_403.module @@ -4,14 +4,3 @@ * @file nyss_403.module * Creates Custom 403 page, and then adds that as default 403 url */ - -/** - * Implementation of hook_update(). - */ -function nyss_403_update($node) { - - - -} - -