You are here

function _bean_usage_entity_display in Bean (for Drupal 7) 7

Helper function to display an entity on the report

Parameters

$table:

$value:

$key:

$column:

Return value

mixed

1 call to _bean_usage_entity_display()
bean_usage_output in bean_usage/bean_usage.module
Displays a table of Beans and their usage

File

bean_usage/bean_usage.module, line 395
Bean Admin Functions and Display

Code

function _bean_usage_entity_display($table, $value, $key, $column) {
  $query = db_select($table, 't')
    ->fields('t', array(
    $column,
  ))
    ->condition($key, $value)
    ->execute()
    ->fetchAssoc();
  return $query[$column];
}