function admin_import_metadata() { $groupId = $this->_controler->_actionParams['sGroupId']; $srcGroupId = $this->_controler->_actionParams['sSrcGroupId']; $pm = ProjectManager::instance(); $srcGo = $pm->getProject($srcGroupId); if ($srcGo != false && ($srcGo->isPublic() || !$srcGo->isPublic() && $srcGo->userIsMember())) { $mdFactory = new Docman_MetadataFactory($srcGo->getGroupId()); $mdFactory->exportMetadata($groupId); $this->_controler->feedback->log('info', $GLOBALS['Language']->getText('plugin_docman', 'admin_md_import_success', array($srcGo->getPublicName()))); } else { $this->_controler->feedback->log('error', $GLOBALS['Language']->getText('plugin_docman', 'error_perms_generic')); } }