Commit d476f2ad authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

Some small changes that make deadwood work (mostly) on provision

parent a7cfa91f
name = Provision
description = Allows for the automated provisioning of hosted Drupal sites, via the command line
package = Provision
dependencies = drush provision_drupal provision_mysql provision_apache
dependencies = drush
......@@ -128,43 +128,38 @@ function provision_perm() {
/**
* Implementation of hook_menu().
*/
function provision_menu($may_cache = TRUE) {
if ($may_cache) {
$items[] = array(
'path' => 'admin/settings/provision',
'title' => t('Provisioning'),
'description' => t("Configure how new Drupal sites will be provisioned."),
'callback' => 'drupal_get_form',
'callback arguments' => array('provision_configure'),
'access' => user_access('administer provisioning'),
);
$items[] = array(
'path' => 'admin/help/provision/requirements',
'title' => t('Provisioning requirements'),
'description' => t("Information of how to configure the provisioning system."),
'callback' => 'provision_help_requirements',
'type' => MENU_CALLBACK
);
}
else {
$items[] = array(
'path' => 'provision/disabled',
'title' => t('Site disabled'),
'description' => t('Page showed when a site is disabled.'),
'callback' => 'provision_disabled_site',
'type' => MENU_CALLBACK,
'access' => user_access('access content'),
);
$items[] = array(
'path' => 'provision/maintenance',
'title' => t('Site is undergoing maintenance.'),
'description' => t('Page shown when a site is being restored or moved etc.'),
'callback' => 'provision_site_maintenance',
'type' => MENU_CALLBACK,
'access' => user_access('access content'),
);
}
function provision_menu($may_cache) {
$items[] = array(
'path' => 'admin/settings/provision',
'title' => t('Provisioning'),
'description' => t("Configure how new Drupal sites will be provisioned."),
'callback' => 'drupal_get_form',
'callback arguments' => array('provision_configure'),
'access' => user_access('administer provisioning'),
);
$items[] = array(
'path' => 'admin/help/provision/requirements',
'title' => t('Provisioning requirements'),
'description' => t("Information of how to configure the provisioning system."),
'callback' => 'provision_help_requirements',
'type' => MENU_CALLBACK
);
$items[] = array(
'path' => 'provision/disabled',
'title' => t('Site disabled'),
'description' => t('Page showed when a site is disabled.'),
'callback' => 'provision_disabled_site',
'type' => MENU_CALLBACK,
'access' => user_access('access content'),
);
$items[] = array(
'path' => 'provision/maintenance',
'title' => t('Site is undergoing maintenance.'),
'description' => t('Page shown when a site is being restored or moved etc.'),
'callback' => 'provision_site_maintenance',
'type' => MENU_CALLBACK,
'access' => user_access('access content'),
);
return $items;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment