You are here

entityform_handler_delete_link_field.inc in Entityform 7

Same filename and directory in other branches
  1. 7.2 views/entityform_handler_delete_link_field.inc

Contains a Views field handler to take care of displaying deletes links as fields

File

views/entityform_handler_delete_link_field.inc
View source
<?php

/**
 * @file
 * Contains a Views field handler to take care of displaying deletes links
 * as fields
 */
class entityform_handler_delete_link_field extends entityform_handler_link_field {
  function construct() {
    parent::construct();
    $this->additional_fields['uid'] = 'uid';
  }
  function render($values) {
    if (!entityform_access('delete', $this
      ->create_dummyentityform($values))) {
      return;
    }
    $text = !empty($this->options['text']) ? $this->options['text'] : t('delete');
    $entityform_id = $values->{$this->aliases['entityform_id']};
    return l($text, 'entityform/' . $entityform_id . '/delete');
  }

}

Classes

Namesort descending Description
entityform_handler_delete_link_field @file Contains a Views field handler to take care of displaying deletes links as fields