Created
April 9, 2018 17:52
-
-
Save beinoriusju/3ba7a8c8e2c0acafc2fc819aa9b752f6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function addModule() { | |
$this->load->model('setting/module'); | |
$this->model_setting_module->addModule('age_restriction', [ | |
'name' => 'Age Restriction (21)', | |
'message' => 'Are you %s and older?', | |
'age' => 21, | |
'redirect_url' => 'http://www.example.org', | |
'status' => 1 /* Enabled by default*/ | |
]); | |
return $this->db->getLastId(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment