You are here

varbase_tweaks.module in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7

Same filename and directory in other branches
  1. 7.2 modules/custom/varbase_tweaks/varbase_tweaks.module

Applies some tweaks for a more usable and standardized Drupal site.

File

modules/custom/varbase_tweaks/varbase_tweaks.module
View source
<?php

/**
 * @file
 * Applies some tweaks for a more usable and standardized Drupal site.
 */

/**
 * Implements hook_form_FORM_ID_alter().
 *
 * Allows the profile to alter the site configuration form.
 */
function varbase_tweaks_form_system_site_information_settings_alter(&$form, $form_state) {
  global $user;
  if ($user->uid != 1) {
    $form['front_page']['#access'] = FALSE;
  }
}