public function ReportEditor::l_icon in Forena Reports 7.5
Same name and namespace in other branches
- 8 src/Editor/ReportEditor.php \Drupal\forena\Editor\ReportEditor::l_icon()
4 calls to ReportEditor::l_icon()
- ReportEditor::blockLinks in src/Editor/ReportEditor.php
- ReportEditor::editorLinks in src/Editor/ReportEditor.php
- ReportEditor::foreachLinks in src/Editor/ReportEditor.php
- Add foreach section links to blocks.
- ReportEditor::report in src/Editor/ReportEditor.php
- Load and render a report based on a drupal path.
In this function the arglist is used to get the full path to the report.
Pass parameters or NULL to use get /post parameters.
File
- src/Editor/ReportEditor.php, line 1147
- ReportEditor.inc
Wrapper XML class for working with DOM object.
It provides helper
Enter description here ...
@author metzlerd
Class
- ReportEditor
Namespace
Drupal\forena\Editor
Code
public function l_icon($link, $name, $alt, $context = array(), $label = "") {
$path = $name == 'configure.png' ? 'misc' : drupal_get_path('module', 'forena') . '/icons';
$image = array(
'path' => file_create_url("{$path}/{$name}"),
'alt' => t($alt),
'title' => t($alt),
);
$image = theme('image', $image);
$options = array(
'query' => $context,
'html' => TRUE,
);
return l($image . $label, $link, $options);
}