Files
BulkMoveTasks/Plugin.php
2026-07-13 08:56:16 -03:00

51 lines
1.2 KiB
PHP

<?php
namespace Kanboard\Plugin\BulkMoveTasks;
use Kanboard\Core\Plugin\Base;
class Plugin extends Base
{
public function initialize()
{
// Render the "Move tasks in bulk" entry. The only column hook sits outside the
// native menu <ul>, so column_dropdown.php renders it hidden and relocate.js
// moves it into the menu (passes the current $column and $swimlane).
$this->template->hook->attach('template:board:column:dropdown', 'bulkMoveTasks:board/column_dropdown');
$this->hook->on('template:layout:js', array(
'template' => 'plugins/BulkMoveTasks/Asset/js/relocate.js',
));
}
public function getPluginName()
{
return 'BulkMoveTasks';
}
public function getPluginDescription()
{
return t('Move all tasks from one board column to another in a single action.');
}
public function getPluginAuthor()
{
return 'Ruben (drbeco)';
}
public function getPluginVersion()
{
return '1.0.4';
}
public function getPluginHomepage()
{
return 'https://code.beco.cc/beco/BulkMoveTasks';
}
public function getCompatibleVersion()
{
return '>=1.2.0';
}
}