You are here

public function ReportEditor::l_icon in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/Editor/ReportEditor.php \Drupal\forena\Editor\ReportEditor::l_icon()
3 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.

File

src/Editor/ReportEditor.php, line 1055
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);
}