Skip to content

Commit

Permalink
Added modes argument to module.add tool
Browse files Browse the repository at this point in the history
  • Loading branch information
kasimi committed Feb 25, 2017
1 parent a6d4b7b commit 81ab3c9
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions migrations/mchat_2_0_0_rc3.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,28 +135,39 @@ public function update_data()
array('module.add', array(
'acp',
'ACP_CAT_DOT_MODS',
'ACP_CAT_MCHAT'
'ACP_CAT_MCHAT',
)),

// Add ACP preferences module
array('module.add', array(
'acp',
'ACP_CAT_MCHAT',
array('module_basename' => '\dmzx\mchat\acp\acp_mchat_module'),
array(
'module_basename' => '\dmzx\mchat\acp\acp_mchat_module',
'modes' => array(
'globalsettings',
'globalusersettings',
),
),
)),

// Add UCP category
array('module.add', array(
'ucp',
0,
'UCP_MCHAT_CONFIG'
'UCP_MCHAT_CONFIG',
)),

// Add UCP preferences module
array('module.add', array(
'ucp',
'UCP_MCHAT_CONFIG',
array('module_basename' => '\dmzx\mchat\ucp\ucp_mchat_module'),
array(
'module_basename' => '\dmzx\mchat\ucp\ucp_mchat_module',
'modes' => array(
'configuration',
),
),
)),
);
}
Expand Down

0 comments on commit 81ab3c9

Please sign in to comment.