Views - custon field handler

drupalprojects's picture

Hi Folks!

I need to create custom views field in my module. Basically it should behave like Node edit/delete field. I started with extending views_handler_field class and I can see and add my new field in views admin.

But when I add my new field to view - it don't display any values (empty).
My Code:

<?php
class views_handler_field_gift_delete extends views_handler_field {

    function
render($values) {
        return
'test';
    }

}
?>

Any ideas?