Commit 65b4d0b2 authored by Adrian Rossouw's avatar Adrian Rossouw Committed by adrian

Some d6 compatibility changes

parent 3acbe381
...@@ -373,7 +373,8 @@ function provision_drupal_provision_verify($url, &$data) { ...@@ -373,7 +373,8 @@ function provision_drupal_provision_verify($url, &$data) {
$data['profiles'] = _provision_find_profiles(); $data['profiles'] = _provision_find_profiles();
$data['themes'] = system_theme_data(); $data['themes'] = system_theme_data();
$data['platform'] = array('short_name' => 'drupal', 'version' => VERSION); $data['platform'] = array('short_name' => 'drupal', 'version' => VERSION);
provision_log('notice', t("This platform is running @short_name @version",
array('@short_name' => 'drupal', '@version' => VERSION)));
$sites = provision_drupal_find_sites(); $sites = provision_drupal_find_sites();
$data['sites'] = array_keys($sites); // return list of hosted sites. used to determine whether or not to import. $data['sites'] = array_keys($sites); // return list of hosted sites. used to determine whether or not to import.
......
...@@ -167,6 +167,15 @@ function _provision_requirements($req, $section = 'all') { ...@@ -167,6 +167,15 @@ function _provision_requirements($req, $section = 'all') {
return theme("requirement_help", $item); return theme("requirement_help", $item);
} }
function provision_theme() {
return array(
'requirement_help' => array(
'arguments' => array('element' => NULL)
),
);
}
function provision_get_requirement($req) { function provision_get_requirement($req) {
$func = '_provision_'. $req .'_requirements'; $func = '_provision_'. $req .'_requirements';
if (function_exists($func)) { if (function_exists($func)) {
......
...@@ -173,6 +173,8 @@ function provision_menu() { ...@@ -173,6 +173,8 @@ function provision_menu() {
'title' => 'Provisioning requirements', 'title' => 'Provisioning requirements',
'description' => "Information of how to configure the provisioning system.", 'description' => "Information of how to configure the provisioning system.",
'page callback' => 'provision_help_requirements', 'page callback' => 'provision_help_requirements',
'access callback' => 'user_access',
'access arguments' => array('access content'),
'type' => MENU_CALLBACK 'type' => MENU_CALLBACK
); );
...@@ -181,13 +183,15 @@ function provision_menu() { ...@@ -181,13 +183,15 @@ function provision_menu() {
'description' => 'Configure your platform.', 'description' => 'Configure your platform.',
'page callback' => 'provision_front', 'page callback' => 'provision_front',
'type' => MENU_CALLBACK, 'type' => MENU_CALLBACK,
'access arguments' => TRUE, 'access callback' => TRUE,
); );
$items['provision/disabled'] = array( $items['provision/disabled'] = array(
'title' => 'Site disabled', 'title' => 'Site disabled',
'description' => 'Page showed when a site is disabled.', 'description' => 'Page showed when a site is disabled.',
'page callback' => 'provision_disabled_site', 'page callback' => 'provision_disabled_site',
'type' => MENU_CALLBACK, 'type' => MENU_CALLBACK,
'access callback' => 'user_access',
'access arguments' => array('access content'), 'access arguments' => array('access content'),
); );
$items['provision/maintenance'] = array( $items['provision/maintenance'] = array(
......
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