function brainstorm_profile_custom_settings in Brainstorm profile 7
Our custom task. Custom settings help to display content correctly.
Parameters
array $install_state: An array of information about the current installation state.
Throws
\Exception
File
- ./
brainstorm_profile.profile, line 57 - Enables modules and site configuration for a standard site installation.
Code
function brainstorm_profile_custom_settings(array $install_state) {
$node = node_load(56);
if (!empty($node)) {
$node->path = array(
'alias' => 'about-us',
'pathauto' => FALSE,
'language' => 'und',
);
node_save($node);
}
$node = node_load(51);
if (!empty($node)) {
$node->path = array(
'alias' => 'contact-us',
'pathauto' => FALSE,
'language' => 'und',
);
node_save($node);
}
$node = node_load(6);
if (!empty($node)) {
$node->path = array(
'alias' => 'typography',
'pathauto' => FALSE,
'language' => 'und',
);
node_save($node);
}
$view = views_get_view('testimonials');
$view->style_plugin->options['instance'] = 'owlcarousel_settings_testimonials';
$view
->save();
$brainstorm_settings = variable_get('theme_brainstorm_theme_settings', array());
$brainstorm_settings['toggle_logo'] = 1;
$brainstorm_settings['toggle_name'] = 0;
variable_set('theme_brainstorm_theme_settings', $brainstorm_settings);
}