Files
BulkMoveTasks/Plugin.php

51 lines
1.2 KiB
PHP
Raw Permalink Normal View History

<?php
2026-06-28 17:31:42 -03:00
namespace Kanboard\Plugin\BulkMoveTasks;
use Kanboard\Core\Plugin\Base;
class Plugin extends Base
{
public function initialize()
{
2026-07-07 13:25:02 -03:00
// 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).
2026-06-28 17:31:42 -03:00
$this->template->hook->attach('template:board:column:dropdown', 'bulkMoveTasks:board/column_dropdown');
2026-07-07 13:25:02 -03:00
$this->hook->on('template:layout:js', array(
'template' => 'plugins/BulkMoveTasks/Asset/js/relocate.js',
));
}
public function getPluginName()
{
2026-06-28 17:31:42 -03:00
return 'BulkMoveTasks';
}
public function getPluginDescription()
{
2026-06-28 17:31:42 -03:00
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.0';
}
public function getPluginHomepage()
{
2026-06-28 17:31:42 -03:00
return 'https://code.beco.cc/beco/BulkMoveTasks';
}
public function getCompatibleVersion()
{
return '>=1.2.0';
}
}