additional_fields['idmaillog'] = 'idmaillog'; } /** * Called to add the field to a query. */ function query() { $this->ensure_my_table(); $this->add_additional_fields(); } function render($values) { // ensure user has access to edit this node. if (!user_access('delete maillog')) { return; } $text = !empty($this->options['text']) ? $this->options['text'] : t('delete'); return l($text, "maillog/delete/$values->idmaillog", array('query' => drupal_get_destination())); } }