Jump to content

Plugin Tabs ..


Recommended Posts

The default tab for any plugin is "General". Then, in the module's admin skin template, this Smarty variable, {$MODULE_ZONES}, will bring in the tabs "Allowed Zones" and "Disabled Zones". (The visible nomenclature is relevant to the admin's language pack being used.) Also, in the module's admin index script, a call is made to instantiate a Module class instance, typically:

$module	= new Module(__FILE__, $_GET['module'], 'admin/index.tpl', true);

where true relates to whether or not to determine and record countries allowed and disallowed and show the respective tabs.

To add tabs, make a call to:

$GLOBALS['main']->addTabControl();
where the function is in:
/classes/acp.class.php

When CubeCart is ready to show the collection of tab details, a hook, 'admin.tabs', allows for a module to fine-tune that collection.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...