CreateImageLink()
CreateImageLink(string $id, string $action, int $returnid, string $contents, string $image, array $params, string $classname, string $warn_message, bool $imageonly, bool $inline, string $addtext, bool $targetcontentonly, string $prettyurl) : string
A convenience method to create a link to a module action containing an image and optionally some text.
This method will automatically search through added image dirs for frontend and admin requests
and through the admin theme directories for admin requests.
Parameters
string |
$id |
The module action id |
string |
$action |
The name of the destination action |
int |
$returnid |
The page for the destination of the request. Empty for admin requests. |
string |
$contents |
The text content of the image. |
string |
$image |
The basename of the image to display. |
array |
$params |
Additional link parameters |
string |
$classname |
Class for the img tag. |
string |
$warn_message |
An optional confirmation message |
bool |
$imageonly |
Wether the contents (if specified) should be ignored. |
bool |
$inline |
|
string |
$addtext |
|
bool |
$targetcontentonly |
|
string |
$prettyurl |
An optional pretty url slug. |
Returns
string