Skip to content

Commit

Permalink
nyss_403 minor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
lcdservices committed Feb 20, 2017
1 parent c35a2a5 commit deaab53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 25 deletions.
20 changes: 6 additions & 14 deletions modules/nyss_403/nyss_403.install
Expand Up @@ -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');

}
11 changes: 0 additions & 11 deletions modules/nyss_403/nyss_403.module
Expand Up @@ -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) {



}


0 comments on commit deaab53

Please sign in to comment.