Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
mahara
mahara
Commits
f40e2653
Commit
f40e2653
authored
Nov 24, 2006
by
Penny Leach
Browse files
added sensible defaults for a admin plugin profile field
parent
9a74322a
Changes
1
Hide whitespace changes
Inline
Side-by-side
htdocs/artefact/internal/lib.php
View file @
f40e2653
...
...
@@ -255,23 +255,25 @@ class ArtefactTypeProfile extends ArtefactType {
'type'
=>
'html'
,
'value'
=>
' '
,
);
$currentwidth
=
get_config_plugin
(
'artefact'
,
'internal'
,
'profileiconwidth'
);
$form
[
'elements'
][
'profileiconwidth'
]
=
array
(
'type'
=>
'text'
,
'size'
=>
4
,
'suffix'
=>
get_string
(
'widthshort'
),
'title'
=>
get_string
(
'profileiconsize'
,
'artefact.internal'
),
'defaultvalue'
=>
get_config_plugin
(
'artefact'
,
'internal'
,
'profileiconwidth'
),
'defaultvalue'
=>
((
!
empty
(
$currentwidth
))
?
$currentwidth
:
100
),
'rules'
=>
array
(
'required'
=>
true
,
'integer'
=>
true
,
)
);
$currentheight
=
get_config_plugin
(
'artefact'
,
'internal'
,
'profileiconheight'
);
$form
[
'elements'
][
'profileiconheight'
]
=
array
(
'type'
=>
'text'
,
'suffix'
=>
get_string
(
'heightshort'
),
'size'
=>
4
,
'title'
=>
get_string
(
'profileiconsize'
,
'artefact.internal'
),
'defaultvalue'
=>
get_config_plugin
(
'artefact'
,
'internal'
,
'profileiconheight'
),
'defaultvalue'
=>
((
!
empty
(
$currentheight
))
?
$currentheight
:
100
),
'rules'
=>
array
(
'required'
=>
true
,
'integer'
=>
true
,
...
...
Write
Preview
Supports
Markdown
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