Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
strongarm
Commits
103ea95f
Commit
103ea95f
authored
Jun 05, 2009
by
young hahn
Browse files
#460078
: Fixing E_ALL notices.
parent
aae2bad6
Changes
1
Hide whitespace changes
Inline
Side-by-side
strongarm.module
View file @
103ea95f
...
...
@@ -51,7 +51,7 @@ function strongarm_form_alter(&$form, &$form_state, $form_id) {
$position
=
STRONGARM_PATTERN_SUFFIX
;
}
if
(
$lockdown
)
{
if
(
!
empty
(
$lockdown
)
)
{
drupal_add_css
(
drupal_get_path
(
'module'
,
'strongarm'
)
.
'/strongarm.css'
);
$altered
=
_strongarm_lockdown
(
$form
,
$pattern
,
$position
);
if
(
$altered
)
{
...
...
@@ -63,7 +63,7 @@ function strongarm_form_alter(&$form, &$form_state, $form_id) {
/**
* Retrieve variable configuration from the cache.
*/
function
strongarm_get_cache
()
{
function
strongarm_get_cache
(
$reset
=
FALSE
)
{
static
$conf
;
if
(
!
isset
(
$conf
)
||
$reset
)
{
$conf
=
array
();
...
...
@@ -159,7 +159,7 @@ function _strongarm_lockdown(&$form, $pattern = '', $position = STRONGARM_PATTER
}
// If this is a tree'd element, recurse
if
(
$form
[
$elem
][
'#tree'
]
||
!
empty
(
$children
))
{
if
(
!
empty
(
$form
[
$elem
][
'#tree'
]
)
||
!
empty
(
$children
))
{
$altered
=
$altered
||
_strongarm_lockdown
(
$form
[
$elem
],
$pattern
,
$position
);
}
...
...
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