Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function initiateEditor()
- {
- $tableColumns['url'] = array(
- 'display_text' => 'URL',
- 'perms' => 'EVCAXTQSFHO',
- 'table_fun' => array(&$this,'formatLink'),
- 'view_fun' => array(&$this,'formatLink')
- );
- ...
- }
- function formatLink($col,$val,$row,$instanceName,$rowNum)
- {
- $html = '';
- if(strlen($val) > 0)
- {
- $html = '<a target="_blank" href="'.$val.'">'.$val.'</a>';
- }
- return $html;
- }
Add Comment
Please, Sign In to add comment