You are here

function biblio_ui_handler_delete::render in Bibliography Module 7.3

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

modules/biblio_ui/includes/views/handlers/biblio_ui_handler_delete.inc, line 8

Class

biblio_ui_handler_delete
Delete button for a biblio entry.

Code

function render($values) {
  global $user;
  if (user_access('delete biblio content') || $values->uid == $user->uid && user_access('delete own biblio content')) {
    return l(t('Delete'), 'biblio/' . $values->bid . '/delete');
  }
}