My table Name: Links
My Field: "Lvl' (integer)
Code: Select all
function links_init(&$options, $memberInfo, &$args){
$oldFields = $options->QueryFieldsTV;
foreach($oldFields as $field => $title){
if($field == '`links`.`lvl`'){
// [b]this is where I get stuck[/b]
$modField = "CONCAT('<img src=https://xxxxxx/links/hooks/1.png"\"hooks/',`links`.`lvl`,'.png\"" border="\"0\"">')"
$newFields[$modField] = $title;
}else{
$newFields[$field] = $title;
}
}
$options->QueryFieldsTV = $newFields;
return TRUE;
}