Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
310
Merge Requests
310
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
3a7b64ae
Commit
3a7b64ae
authored
Jul 29, 2006
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#61893
by timnc: remove message_na().
parent
2e8e54ae
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
9 additions
and
26 deletions
+9
-26
includes/common.inc
includes/common.inc
+0
-17
includes/install.inc
includes/install.inc
+2
-2
includes/locale.inc
includes/locale.inc
+1
-1
modules/blogapi/blogapi.module
modules/blogapi/blogapi.module
+2
-2
modules/filter/filter.module
modules/filter/filter.module
+1
-1
modules/forum/forum.module
modules/forum/forum.module
+1
-1
modules/user/user.module
modules/user/user.module
+1
-1
themes/engines/phptemplate/phptemplate.engine
themes/engines/phptemplate/phptemplate.engine
+1
-1
No files found.
includes/common.inc
View file @
3a7b64ae
...
...
@@ -533,23 +533,6 @@ function fix_gpc_magic() {
}
}
/**
* @name Messages
* @{
* Frequently used messages.
*/
/**
* Return a string with a "not applicable" message.
*/
function
message_na
()
{
return
t
(
'n/a'
);
}
/**
* @} End of "Messages".
*/
/**
* Initialize the localization system.
*/
...
...
includes/install.inc
View file @
3a7b64ae
...
...
@@ -276,14 +276,14 @@ function drupal_install_profile($profile) {
// Get a list of modules required by this profile.
$function
=
$profile
.
'_profile_modules'
;
$module_list
=
$function
();
// If anyone has added modules that we automatically install, filter them out.
$module_list
=
array_diff
(
$module_list
,
$bootstrap_list
);
// Verify that all required modules exist.
$bootstrap_modules
=
drupal_find_modules
(
$bootstrap_list
);
$profile_modules
=
drupal_find_modules
(
$module_list
);
// Install the essential system modules and bootstrap Drupal.
drupal_install_modules
(
$bootstrap_list
);
drupal_bootstrap
(
DRUPAL_BOOTSTRAP_FULL
);
...
...
includes/locale.inc
View file @
3a7b64ae
...
...
@@ -86,7 +86,7 @@ function theme_locale_admin_manage_screen($form) {
foreach
(
$form
[
'name'
]
as
$key
=>
$element
)
{
// Do not take form control structures.
if
(
is_array
(
$element
)
&&
element_child
(
$key
))
{
$rows
[]
=
array
(
check_plain
(
$key
),
form_render
(
$form
[
'name'
][
$key
]),
form_render
(
$form
[
'enabled'
][
$key
]),
form_render
(
$form
[
'site_default'
][
$key
]),
(
$key
!=
'en'
?
form_render
(
$form
[
'translation'
][
$key
])
:
message_na
(
)),
(
$key
!=
'en'
?
l
(
t
(
'delete'
),
'admin/locale/language/delete/'
.
$key
)
:
''
));
$rows
[]
=
array
(
check_plain
(
$key
),
form_render
(
$form
[
'name'
][
$key
]),
form_render
(
$form
[
'enabled'
][
$key
]),
form_render
(
$form
[
'site_default'
][
$key
]),
(
$key
!=
'en'
?
form_render
(
$form
[
'translation'
][
$key
])
:
t
(
'n/a'
)),
(
$key
!=
'en'
?
l
(
t
(
'delete'
),
'admin/locale/language/delete/'
.
$key
)
:
''
));
}
}
$header
=
array
(
array
(
'data'
=>
t
(
'Code'
)),
array
(
'data'
=>
t
(
'English name'
)),
array
(
'data'
=>
t
(
'Enabled'
)),
array
(
'data'
=>
t
(
'Default'
)),
array
(
'data'
=>
t
(
'Translated'
)),
array
(
'data'
=>
t
(
'Operations'
)));
...
...
modules/blogapi/blogapi.module
View file @
3a7b64ae
...
...
@@ -215,7 +215,7 @@ function blogapi_blogger_new_post($appkey, $blogid, $username, $password, $conte
if
(
user_access
(
'administer nodes'
)
&&
!
isset
(
$edit
[
'date'
]))
{
$edit
[
'date'
]
=
format_date
(
time
(),
'custom'
,
'Y-m-d H:i:s O'
);
}
node_invoke_nodeapi
(
$edit
,
'blogapi new'
);
node_validate
(
$edit
);
...
...
@@ -247,7 +247,7 @@ function blogapi_blogger_edit_post($appkey, $postid, $username, $password, $cont
$node
=
node_load
(
$postid
);
if
(
!
$node
)
{
return
blogapi_error
(
message_na
(
));
return
blogapi_error
(
t
(
'n/a'
));
}
// Let the teaser be re-generated.
unset
(
$node
->
teaser
);
...
...
modules/filter/filter.module
View file @
3a7b64ae
...
...
@@ -776,7 +776,7 @@ function check_markup($text, $format = FILTER_FORMAT_DEFAULT, $check = TRUE) {
}
}
else
{
$text
=
message_na
(
);
$text
=
t
(
'n/a'
);
}
return
$text
;
...
...
modules/forum/forum.module
View file @
3a7b64ae
...
...
@@ -675,7 +675,7 @@ function _forum_format($topic) {
return
t
(
'%time ago<br />by %author'
,
array
(
'%time'
=>
format_interval
(
time
()
-
$topic
->
timestamp
),
'%author'
=>
theme
(
'username'
,
$topic
)));
}
else
{
return
message_na
(
);
return
t
(
'n/a'
);
}
}
...
...
modules/user/user.module
View file @
3a7b64ae
...
...
@@ -1441,7 +1441,7 @@ function user_view($uid = 0) {
// module_invoke_all().
foreach
(
module_implements
(
'profile_alter'
)
as
$module
)
{
$function
=
$module
.
'_profile_alter'
;
$function
(
$account
,
$fields
);
$function
(
$account
,
$fields
);
}
drupal_set_title
(
$account
->
name
);
...
...
themes/engines/phptemplate/phptemplate.engine
View file @
3a7b64ae
...
...
@@ -231,7 +231,7 @@ function phptemplate_page($content) {
if
(
drupal_is_front_page
())
{
$suggestions
[]
=
'page-front'
;
}
return
_phptemplate_callback
(
'page'
,
$variables
,
$suggestions
);
}
...
...
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