function group_group_operations in Group 7
Implements hook_group_operations().
File
- ./
group.group.inc, line 102 - Hook implementations for the Group module.
Code
function group_group_operations() {
$operations['delete'] = array(
'label' => t('Delete selected groups'),
'callback' => 'group_multiple_delete_confirm',
'form callback' => TRUE,
);
// Add Pathauto module support.
if (module_exists('pathauto') && module_exists('entity_tokens')) {
module_load_include('inc', 'group', 'group.pathauto');
$operations['pathauto_update_alias'] = array(
'label' => t('Update URL alias'),
'callback' => 'group_pathauto_update_alias_multiple',
'callback arguments' => array(
'bulkupdate',
array(
'message' => TRUE,
),
),
);
}
return $operations;
}