Skip to content
This repository has been archived by the owner on Oct 26, 2020. It is now read-only.

Commit

Permalink
v1
Browse files Browse the repository at this point in the history
  • Loading branch information
benmag committed Dec 8, 2016
0 parents commit 1aefc5a
Show file tree
Hide file tree
Showing 18 changed files with 2,367 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .idea/copyright/QUT_CC.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions .idea/copyright/profiles_settings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/humhub-modules-bulk_import.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

195 changes: 195 additions & 0 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions BulkImportEvents.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
<?php

/**
* Connected Communities Initiative
* Copyright (C) 2016 Queensland University of Technology
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

class BulkImportEvents {

/**
* Defines what to do if admin menu is initialized.
*
* @param type $event
*/
public static function onAdminMenuInit($event)
{
$event->sender->addItem(array(
'label' => Yii::t('BulkImportModule.base', 'Bulk Import'),
'url' => Yii::app()->createUrl('//bulk_import/main/index'),
'group' => 'manage',
'icon' => '<i class="fa fa-paw"></i>',
'isActive' => (Yii::app()->controller->module && Yii::app()->controller->module->id == 'bulk_import' && Yii::app()->controller->id == 'admin'),
'sortOrder' => 700,
));

$event->sender->addItem(array(
'label' => Yii::t('BulkImportModule.base', 'Bulk Import Identicons'),
'url' => Yii::app()->createUrl('//bulk_import/main/identicon'),
'group' => 'manage',
'icon' => '<i class="fa fa-paw"></i>',
'isActive' => (Yii::app()->controller->module && Yii::app()->controller->module->id == 'bulk_import' && Yii::app()->controller->id == 'admin'),
'sortOrder' => 700,
));
}

}
34 changes: 34 additions & 0 deletions BulkImportModule.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

/**
* Connected Communities Initiative
* Copyright (C) 2016 Queensland University of Technology
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

class BulkImportModule extends HWebModule{

/**
* Inits the Module
*/
public function init()
{

$this->setImport(array(
'bulk_import.forms.*',
));
}

}
Loading

0 comments on commit 1aefc5a

Please sign in to comment.