function spaces_customtext_form_spaces_features_form_alter in Spaces 6.3
Same name and namespace in other branches
- 7.3 spaces_customtext/spaces_customtext.module \spaces_customtext_form_spaces_features_form_alter()
- 7 spaces_customtext/spaces_customtext.module \spaces_customtext_form_spaces_features_form_alter()
Implementation of hook_form_alter() for spaces_features_form.
File
- spaces_customtext/
spaces_customtext.module, line 132 - Spaces Custom Text.
Code
function spaces_customtext_form_spaces_features_form_alter(&$form, &$form_state) {
$parent = menu_get_item();
foreach (element_children($form['settings']) as $feature) {
$link = l(t('Customize text'), "{$parent['href']}/customtext/{$feature}");
$link = !empty($form['settings'][$feature]['#value']) ? " | {$link}" : $link;
$form['settings'][$feature]['#value'] .= $link;
}
}