Index: Classes/Utility/Extension.php =================================================================== --- Classes/Utility/Extension.php (Revision 3144) +++ Classes/Utility/Extension.php (Arbeitskopie) @@ -163,17 +163,20 @@ * @param string $pluginTitle is a speaking title of the plugin that will be displayed in the drop down menu in the backend * @return void */ - public static function registerPlugin($extensionName, $pluginName, $pluginTitle) { + public static function registerPlugin($extensionName, $pluginName, $pluginTitle, $pluginIcon) { if (empty($pluginName)) { throw new InvalidArgumentException('The plugin name must not be empty', 1239891987); } if (empty($extensionName)) { throw new InvalidArgumentException('The extension name was invalid (must not be empty and must match /[A-Za-z][_A-Za-z0-9]/)', 1239891989); } + if (!empty($pluginIcon)) { + $pluginIcon = t3lib_extMgm::extRelPath($extensionName) . $pluginIcon; + } $extensionName = str_replace(' ', '', ucwords(str_replace('_', ' ', $extensionName))); $pluginSignature = strtolower($extensionName) . '_' . strtolower($pluginName); - t3lib_extMgm::addPlugin(array($pluginTitle, $pluginSignature), 'list_type'); + t3lib_extMgm::addPlugin(array($pluginTitle, $pluginSignature, $pluginIcon), 'list_type'); } /**