function _bean_usage_table_headers in Bean (for Drupal 7) 7
Set the table headers for the table output based on the page that calls for the data.
Parameters
null $bean_delta:
Return value
array
1 call to _bean_usage_table_headers()
- bean_usage_output in bean_usage/
bean_usage.module - Displays a table of Beans and their usage
File
- bean_usage/
bean_usage.module, line 459 - Bean Admin Functions and Display
Code
function _bean_usage_table_headers($bean_delta = NULL) {
if (empty($bean_delta)) {
$table_data_headers = array(
0 => array(
'data' => t('Bean label'),
'field' => 'label',
'sort' => 'asc',
),
1 => array(
'data' => t('Bean title'),
'field' => 'title',
),
2 => array(
'data' => t('Bean type'),
'field' => 'type',
),
3 => array(
'data' => t('Used in'),
),
);
}
else {
$table_data_headers = array(
0 => array(
'data' => t('Used in'),
),
);
}
return $table_data_headers;
}