You are here

function farm_form_update_manager_update_form_alter in farmOS 7

Same name and namespace in other branches
  1. 2.x farm.profile \farm_form_update_manager_update_form_alter()

Implements hook_form_BASE_FORM_ID_alter().

File

./farm.profile, line 11
farmOS installation profile.

Code

function farm_form_update_manager_update_form_alter(&$form, &$form_state, $form_id) {

  // Disable updating through the UI.
  // @see https://www.drupal.org/project/farm/issues/3136140
  drupal_set_message(t('Performing updates through this interface is disabled by farmOS. For information about updating farmOS, see <a href="!url">!url</a>.', array(
    '!url' => 'https://farmOS.org/hosting/updating',
  )), 'error');
  $form['actions']['#access'] = FALSE;
}