Commit 4fb00add authored by Côme Chilliet's avatar Côme Chilliet
Browse files

Put back ldapmanager menu info in the tab class to avoid having LDIF in the menu

parent 2e8a2c22
......@@ -18,7 +18,6 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
class BaseSelectorOrDnAttribute extends BaseSelectorAttribute
{
function applyPostValue ()
......@@ -44,17 +43,12 @@ class ldapmanager extends simplePlugin
{
return array(
'plShortName' => _('LDIF'),
'plTitle' => _('LDAP import/export'),
'plDescription' => _('Allows the import or export of the ldap tree'),
'plIcon' => 'geticon.php?context=applications&icon=ldapmanager&size=48',
'plDescription' => _('Export/Import the ldap tree to/from LDIF format'),
'plObjectType' => array('ldapmanager' => array(
'name' => _('LDAP Manager'),
'tabClass' => 'ldiftab',
'tabClass' => 'ldiftabs',
'mainAttr' => FALSE
)),
'plCategory' => array('ldapmanager' => array('objectClass' => 'none', 'description' => _('Ldap manager'))),
'plSection' => 'conf',
'plPriority' => 10,
'plProvidedAcls' => array()
);
......@@ -214,4 +208,5 @@ class ldapmanager extends simplePlugin
return $config->idepartments;
}
}
?>
......@@ -18,5 +18,5 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
simplePlugin::mainInc('ldapmanager', 'new', TRUE, FALSE);
simplePlugin::mainInc('ldiftabs', 'new', TRUE, FALSE, 'ldapmanager');
?>
......@@ -19,10 +19,24 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.
*/
class ldiftab extends simpleTabs_noSpecial
class ldiftabs extends simpleTabs_noSpecial
{
function save()
{
}
static function plInfo()
{
return array(
'plShortName' => _('LDAP import/export'),
'plDescription' => _('Allows the import or export of the ldap tree'),
'plIcon' => 'geticon.php?context=applications&icon=ldapmanager&size=48',
'plSection' => 'conf',
'plPriority' => 10,
'plCategory' => array('ldapmanager' => array('objectClass' => 'none', 'description' => _('Ldap manager'))),
'plProvidedAcls' => array()
);
}
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment