教程栏目

joomla中文网出品的官方教程

Events of editor

onGetIcons

Description

This method is called when the Quick Icons module is constructing its set of icons. You can return an array which defines a single icon and it will be rendered right after the stock Quick Icons.

Parameters

  • context The context of the content being passed to the plugin - this is the component name and view - or name of module (e.g. com_content.article). Use this to check whether you are in the desired context for the plugin.

Return Value

A list of icon definition associative arrays, consisting of the keys link, image, text and access.

Example:

$return = array(
	array(
		'link' => 'index.php?option=com_joomlaupdate',
		'image' => 'joomla',
		'icon' => 'header/icon-48-download.png',
		'text' => JText::_('PLG_QUICKICON_JOOMLAUPDATE_CHECKING'),
		'id' => 'plg_quickicon_joomlaupdate',
		'group' => 'MOD_QUICKICON_MAINTENANCE'
	)
);

Called in files

  • administrator/modules/mod_quickicon/helper.php

作者: 樱木花道

Joomla程序员,从J1.5到J4.x始终都在做Joomla相关开发定制工作,有超过10年行业经验,国内Joomla扩展开发商ZMAX团队的核心成员

作者网站:ZMAX程序人

评论 (0)

  • 最新在前
  • 最佳在前

第3章 处理URL请求参数

第5章 日志

第6章 错误和调试

第10章 缓存

第14章 路由系统