Can't set Custom Module Table Actions Label

I have a custom module with following configuration.

$config['modules']['applications'] = array(
    'preview_path' => 'applications',
    'table_actions' => array(
        'PDF' => array(
            'func' => function ($fields) {
                return '<a href="' . site_url('applications/pdf/'. $fields['id']) . '" rel="noopener noreferrer" target="_blank">VIEW</a>';
            }
        ),
        'EDIT',
        'DELETE'
    )
);

When I goto my module's list page I don't see the PDF label, instead it is VIEW.

Comments

Sign In or Register to comment.