function spaces_customize in Spaces 5.2
Customization page callback.
1 string reference to 'spaces_customize'
- spaces_active_space_menu in ./
spaces.module - A mild abstraction of hook_menu() items that can be used by implementing modules to embed/graft relevant spaces items into the menu tree. Should only be used when the $may_cache argument of hook_menu() is false.
File
- ./
spaces_admin.inc, line 708
Code
function spaces_customize($space, $feature = NULL) {
$features = spaces_features($space->type);
if (isset($features[$feature])) {
drupal_set_title(t('Customize feature: !feature', array(
'!feature' => $features[$feature]->spaces['label'],
)));
return drupal_get_form('spaces_customize_form', $space, $feature);
}
else {
$rows = array();
foreach (spaces_features($space->type) as $id => $feature) {
if (isset($space->features[$id]) && $space->features[$id] != SPACES_FEATURE_DISABLED) {
$label = "<strong>" . $feature->spaces['label'] . "</strong>";
$description = "<div class='description'>" . $feature->spaces['description'] . "</div>";
$rows[] = array(
$label . $description,
l(t('Customize'), 'spaces/customize/' . $id),
);
}
}
return theme('table', array(
t('Available features'),
'',
), $rows);
}
}