function farm_install in farmOS 7
Same name and namespace in other branches
- 2.x farm.install \farm_install()
Implements hook_install().
File
- ./
farm.install, line 59 - farmOS install file.
Code
function farm_install() {
// Set the installation profile to farm.
// @see https://github.com/farmOS/farmOS/issues/272
variable_set('install_profile', 'farm');
// Only admins can create new accounts.
variable_set('user_register', USER_REGISTER_ADMINISTRATORS_ONLY);
// Set the front page to the farm dashboard.
variable_set('site_frontpage', 'farm');
// Use the farm menu for primary links (provided by farm_admin).
variable_set('menu_main_links_source', 'farm');
}