function og_subgroups_theme in Subgroups for Organic groups 6
Implementation of hook_theme()
File
- ./
og_subgroups.module, line 464 - Maintains a hierarchy of groups created by the orgainc groups module.
Code
function og_subgroups_theme() {
$registry = array(
'og_subgroups_menu_tree' => array(
'arguments' => array(
'group' => NULL,
),
),
'og_subgroups_menu_tree_branch' => array(
'arguments' => array(
'group' => NULL,
'branch' => NULL,
'parents' => NULL,
),
),
'og_subgroups_menu_tree_link' => array(
'arguments' => array(
'current' => NULL,
'group' => NULL,
'access' => NULL,
),
),
);
// Add the theme file to each
$file = 'theme.inc';
$path = drupal_get_path('module', 'og_subgroups') . '/includes';
foreach ($registry as $key => $entry) {
$registry[$key]['file'] = $file;
$registry[$key]['path'] = $path;
}
return $registry;
}