You are here

public function FrxEditor::l_icon in Forena Reports 7.4

4 calls to FrxEditor::l_icon()
FrxEditor::blockLinks in ./FrxEditor.inc
FrxEditor::editorLinks in ./FrxEditor.inc
FrxEditor::foreachLinks in ./FrxEditor.inc
Add foreach section links to blocks.
FrxEditor::report in ./FrxEditor.inc
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

./FrxEditor.inc, line 1092
FrxEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

Class

FrxEditor
@file FrxEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd

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);
}