function varbase_tweaks_form_system_site_information_settings_alter in Varbase: The Ultimate Drupal CMS Starter Kit (Bootstrap Ready) 7
Same name and namespace in other branches
- 7.2 modules/custom/varbase_tweaks/varbase_tweaks.module \varbase_tweaks_form_system_site_information_settings_alter()
Implements hook_form_FORM_ID_alter().
Allows the profile to alter the site configuration form.
File
- modules/
custom/ varbase_tweaks/ varbase_tweaks.module, line 12 - Applies some tweaks for a more usable and standardized Drupal site.
Code
function varbase_tweaks_form_system_site_information_settings_alter(&$form, $form_state) {
global $user;
if ($user->uid != 1) {
$form['front_page']['#access'] = FALSE;
}
}