You are here

function multipurpose_corporate_profile_custom_settings in Multipurpose Corporate 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

./multipurpose_corporate_profile.profile, line 51
Enables modules and site configuration for a standard site installation.

Code

function multipurpose_corporate_profile_custom_settings(array $install_state) {
  $node = node_load(3);
  if (!empty($node)) {
    $node->path = array(
      'alias' => 'about-us',
      'pathauto' => FALSE,
      'language' => 'und',
    );
    node_save($node);
  }
  $node = node_load(6);
  if (!empty($node)) {
    $node->path = array(
      'alias' => 'contact-us',
      'pathauto' => FALSE,
      'language' => 'und',
    );
    node_save($node);
  }
  variable_set('menu_block_2_parent', 'main-menu:468');
}