protected function OAuth2ServerClientUIController::overviewTableRow in OAuth2 Server 7
Overrides EntityDefaultUIController::overviewTableRow().
Overrides EntityDefaultUIController::overviewTableRow
File
- includes/
oauth2_server.client_admin.inc, line 95 - Admin UI for clients.
Class
- OAuth2ServerClientUIController
- UI controller.
Code
protected function overviewTableRow($conditions, $id, $entity, $additional_cols = array()) {
$entity_uri = entity_uri($this->entityType, $entity);
$row[] = array(
'data' => array(
'#theme' => 'entity_ui_overview_item',
'#label' => entity_label($this->entityType, $entity),
'#name' => FALSE,
'#url' => $entity_uri ? $entity_uri : FALSE,
'#entity_type' => $this->entityType,
),
);
// Add in any passed additional cols.
foreach ($additional_cols as $col) {
$row[] = $col;
}
// Add the edit and delete links.
$row[] = l(t('edit'), $this->path . '/' . $id);
$row[] = l(t('delete'), $this->path . '/' . $id . '/delete', array(
'query' => drupal_get_destination(),
));
return $row;
}