You are here

function spaces_core_form_alter in Spaces 5.2

Same name and namespace in other branches
  1. 5 spaces_core/spaces_core.module \spaces_core_form_alter()
  2. 6 spaces_core/spaces_core.module \spaces_core_form_alter()

Implementation of hook_form_alter().

File

spaces_core/spaces_core.module, line 67

Code

function spaces_core_form_alter($form_id, &$form) {
  switch ($form_id) {
    case 'user_edit':
      unset($form['og_settings']);

      // Remove the og email settings.
      break;
    case 'comment_form':
      if (!drupal_get_title()) {
        drupal_set_title(t('Reply'));
      }
      break;
  }
}