You are here

public function FrxEditor::fieldLink in Forena Reports 7.4

File

./FrxEditor.inc, line 1054
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 fieldLink($id, $value) {
  $o = '';
  if (!isset($this->field_ids[$id])) {
    $m_path = drupal_get_path('module', 'forena');
    $report_link = $this->report_link;
    $image = array(
      'path' => url("{$m_path}/icons/cog.svg"),
      'alt' => t('Configure'),
      'title' => t('Configure'),
      'class' => 'forena-field-config',
    );
    $image = theme('image', $image);
    $id = urlencode($id);
    $o = l($image, "{$report_link}/edit/edit-field/{$id}", array(
      'html' => TRUE,
      'attributes' => array(
        'class' => 'forena-field-config',
      ),
    ));
    $this->field_ids[$id] = 1;
  }
  return $o;
}