Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // check if we're in PS or exit to prevent malicious direct load of the module
- if (!defined('_PS_VERSION_'))
- exit;
- class FooBar extends Module
- {
- public function __construct()
- {
- $this->name = 'foobar';
- $this->tab = 'content_management';
- $this->version = '1.0.0';
- $this->author = 'foo';
- $this->need_instance = 0;
- $this->ps_versions_compliancy = array('min' => 1.7, 'max' => _PS_VERSION_);
- $this->bootstrap = true;
- parent::__construct();
- $this->displayName = $this->l('Foo Bar');
- $this->description = $this->l('Whatever');
- }
- public function install()
- {
- if (!parent::install())
- return false;
- return false;
- }
- public function uninstall()
- {
- if (!parent::uninstall())
- return false;
- return true;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement