env_conf.module 715 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php

/**
 * @file
 * Per-environment configuration module,
 * hooks implementations.
 */

/**
 * Implements hook_perm().
 */
function env_conf_perm() {
  return array(
    'access deploy-configuration feature',
  );
}

/**
 * Implements hook_menu().
 */
function env_conf_menu() {
  return array(
    'admin/settings/environment-configuration' => array(
      'title' => 'Per-environment configuration',
      'description' => 'Page where you can deploy a selected environment configuration.',
      'page callback' => 'drupal_get_form',
      'page arguments' => array('env_conf_form'),
      'access arguments' => array('access deploy-configuration feature'),
      'file' => 'env_conf.forms.inc',
    )
  );
}