function mobile_tools_spaces_registry in Mobile Tools 7.2
Same name and namespace in other branches
- 7.3 mobile_tools.module \mobile_tools_spaces_registry()
Implements hook_spaces_registry().
File
- ./
mobile_tools.module, line 366 - Functionality to ease the creation of mixed device environments.
Code
function mobile_tools_spaces_registry() {
$type = array();
$device_groups = mobile_tools_device_groups();
// Register a space for each device group
// @todo change to register only one device space type
// instead use implementations of each space for settings
foreach ($device_groups as $id => $name) {
$types['mobile_tools_' . $id] = array(
'title' => t('Device Group Space: @group', array(
'@group' => t($name),
)),
'plugin' => 'space_mobile_tools',
);
}
return array(
'types' => $types,
);
}