public function ReportEditor::fieldLink in Forena Reports 7.5
Same name and namespace in other branches
- 8 src/Editor/ReportEditor.php \Drupal\forena\Editor\ReportEditor::fieldLink()
File
- src/
Editor/ ReportEditor.php, line 1109 - ReportEditor.inc Wrapper XML class for working with DOM object. It provides helper Enter description here ... @author metzlerd
Class
Namespace
Drupal\forena\EditorCode
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;
}