function hook_party_admin_columns_info in Party 7
Same name and namespace in other branches
- 8.2 party.api.php \hook_party_admin_columns_info()
Add a column to the table on the Community admin page.
This hook allows modules who change the party implementations to send their data to the Community admin page.
Return value
An array of columns with keys:
- "title": Required. The name of the column.
- "callback": Required. A function that returns the value of the column. This is sent a party object
- "callback arguments": Optional: Any extra arguments to be sent.
- "field": Optional: I don't know what this does.
File
- ./
party.api.php, line 250 - Hooks provided by the Party module.
Code
function hook_party_admin_columns_info() {
$columns = array(
'pid' => array(
'label' => t('Party Id'),
'field' => 'cp.pid',
'callback' => 'party_party_admin_columns',
),
);
}