oa_wizard_handler_field_delete_entity.inc in Open Atrium Wizard 7.2
Provide views handlers for fieldable panel panes
File
plugins/views/oa_wizard_handler_field_delete_entity.incView source
<?php
/**
* @file
* Provide views handlers for fieldable panel panes
*/
/**
* Field handler to present a link node delete.
*/
class oa_wizard_handler_field_delete_entity extends oa_wizard_handler_field_view_entity {
/**
* Renders the link.
*/
function render_link($entity, $values) {
if (oa_wizard_access('delete', $entity)) {
$this->options['alter']['make_link'] = TRUE;
$this->options['alter']['path'] = "admin/structure/wizards/view/{$entity->wizard_id}/delete";
$this->options['alter']['query'] = drupal_get_destination();
$text = !empty($this->options['text']) ? $this->options['text'] : t('delete');
return $text;
}
else {
$this->options['alter']['path'] = '';
}
}
}
Classes
Name![]() |
Description |
---|---|
oa_wizard_handler_field_delete_entity | Field handler to present a link node delete. |