You are here

function hook_composer_json_alter in Composer Manager 6

Same name and namespace in other branches
  1. 6.2 composer_manager.api.php \hook_composer_json_alter()
  2. 7.2 composer_manager.api.php \hook_composer_json_alter()
  3. 7 composer_manager.api.php \hook_composer_json_alter()

Allow modules to alter the consolidated JSON array.

Parameters

array &$json: The consolidated JSON compiled from each module's composer.json file.

2 invocations of hook_composer_json_alter()
composer_manager_build_json in ./composer_manager.writer.inc
Builds the JSON array ccontaining the combined requirements of each module's composer.json file.
composer_manager_packages_have_changed in ./composer_manager.module
Returns TRUE if at least one passed modules has a composer.json file or implements hook_composer_json_alter(). These conditions indicate that the consolidated composer.json file has likely changed.

File

./composer_manager.api.php, line 19
Hooks provided by the Composer Manager module.

Code

function hook_composer_json_alter(&$json) {
  $json['minimum-stability'] = 'dev';
}