Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ( !defined( '_PS_VERSION_' ) )
- exit;
- class DatePicker extends Module
- {
- public function __construct()
- {
- $this->name = 'datepicker';
- $this->tab = 'Products';
- $this->version = 1.0;
- $this->author = 'PeteAH';
- $this->need_instance = 0;
- $this->registerHook('productFooter')
- parent::__construct();
- $this->displayName = $this->l( 'Date Picker' );
- $this->description = $this->l( 'Allows a date to be picked' );
- }
- public function install()
- {
- if ( parent::install() == false )
- return false;
- return true;
- }
- public function hookLeftColumn( $params )
- {
- return $this->display( __FILE__, 'datepicker.tpl' );
- }
- public function hookProductFooter( $params )
- {
- return $this->display( __FILE__, 'datepicker.tpl' );
- }
- public function hookRightColumn( $params )
- {
- return $this->hookLeftColumn( $params );
- }
- if ( !parent::uninstall() )
- Db::getInstance()->Execute( 'DELETE FROM `' . _DB_PREFIX_ . 'datepicker`' );
- parent::uninstall();
- }
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement