Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
provision
Commits
65b4d0b2
Commit
65b4d0b2
authored
Oct 21, 2008
by
Adrian Rossouw
Committed by
adrian
Oct 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some d6 compatibility changes
parent
3acbe381
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
platform/provision_drupal.module
platform/provision_drupal.module
+2
-1
provision.help.inc
provision.help.inc
+9
-0
provision.module
provision.module
+5
-1
No files found.
platform/provision_drupal.module
View file @
65b4d0b2
...
...
@@ -373,7 +373,8 @@ function provision_drupal_provision_verify($url, &$data) {
$data
[
'profiles'
]
=
_provision_find_profiles
();
$data
[
'themes'
]
=
system_theme_data
();
$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
();
$data
[
'sites'
]
=
array_keys
(
$sites
);
// return list of hosted sites. used to determine whether or not to import.
...
...
provision.help.inc
View file @
65b4d0b2
...
...
@@ -167,6 +167,15 @@ function _provision_requirements($req, $section = 'all') {
return
theme
(
"requirement_help"
,
$item
);
}
function
provision_theme
()
{
return
array
(
'requirement_help'
=>
array
(
'arguments'
=>
array
(
'element'
=>
NULL
)
),
);
}
function
provision_get_requirement
(
$req
)
{
$func
=
'_provision_'
.
$req
.
'_requirements'
;
if
(
function_exists
(
$func
))
{
...
...
provision.module
View file @
65b4d0b2
...
...
@@ -173,6 +173,8 @@ function provision_menu() {
'title'
=>
'Provisioning requirements'
,
'description'
=>
"Information of how to configure the provisioning system."
,
'page callback'
=>
'provision_help_requirements'
,
'access callback'
=>
'user_access'
,
'access arguments'
=>
array
(
'access content'
),
'type'
=>
MENU_CALLBACK
);
...
...
@@ -181,13 +183,15 @@ function provision_menu() {
'description'
=>
'Configure your platform.'
,
'page callback'
=>
'provision_front'
,
'type'
=>
MENU_CALLBACK
,
'access
arguments
'
=>
TRUE
,
'access
callback
'
=>
TRUE
,
);
$items
[
'provision/disabled'
]
=
array
(
'title'
=>
'Site disabled'
,
'description'
=>
'Page showed when a site is disabled.'
,
'page callback'
=>
'provision_disabled_site'
,
'type'
=>
MENU_CALLBACK
,
'access callback'
=>
'user_access'
,
'access arguments'
=>
array
(
'access content'
),
);
$items
[
'provision/maintenance'
]
=
array
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment