Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Commits
a5ce14d9
Commit
a5ce14d9
authored
12 years ago
by
Daniel Wehner
Committed by
Tim Plunkett
12 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Experiment with module handler as PSR0
parent
9b956ea6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7452
Issue #1797438. HTML5 validation is preventing form submit and not fully...
,
!789
Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/Drupal/node/Plugins/views/filter/Status.php
+4
-2
4 additions, 2 deletions
lib/Drupal/node/Plugins/views/filter/Status.php
modules/node.views.inc
+1
-1
1 addition, 1 deletion
modules/node.views.inc
views.module
+17
-0
17 additions, 0 deletions
views.module
with
22 additions
and
3 deletions
modules/node/views_handler_filter_node_s
tatus.
inc
→
lib/Drupal/node/Plugins/views/filter/S
tatus.
php
+
4
−
2
View file @
a5ce14d9
...
...
@@ -2,9 +2,11 @@
/**
* @file
* Definition of
views_handler_filter_node_s
tatus
.
* Definition of
Drupal\node\Plugins\views\filter\S
tatus
*/
namespace
Drupal\node\Plugins\views\filter
;
use
Drupal\views\Plugins\views\filter\FilterPluginBase
;
/**
...
...
@@ -12,7 +14,7 @@
*
* @ingroup views_filter_handlers
*/
class
views_handler_filter_node_s
tatus
extends
FilterPluginBase
{
class
S
tatus
extends
FilterPluginBase
{
function
admin_summary
()
{
}
function
operator_form
(
&
$form
,
&
$form_state
)
{
}
function
can_expose
()
{
return
FALSE
;
}
...
...
This diff is collapsed.
Click to expand it.
modules/node.views.inc
+
1
−
1
View file @
a5ce14d9
...
...
@@ -172,7 +172,7 @@ function node_views_data() {
'help'
=>
t
(
'Filters out unpublished content if the current user cannot view it.'
),
'filter'
=>
array
(
'field'
=>
'status'
,
'handler'
=>
'
views_handler_filter_node_s
tatus'
,
'handler'
=>
'
Drupal\node\Plugins\views\filter\S
tatus'
,
'label'
=>
t
(
'Published or admin'
),
),
);
...
...
This diff is collapsed.
Click to expand it.
views.module
+
17
−
0
View file @
a5ce14d9
...
...
@@ -33,6 +33,23 @@ function views_api_version() {
return
'3.0'
;
}
/**
* Implements hook_init().
*
*
*/
function
views_init
()
{
$core_modules
=
array
(
'aggregator'
,
'book'
,
'comment'
,
'contact'
,
'field'
,
'filter'
,
'locale'
,
'node'
,
'search'
,
'statistics'
,
'system'
,
'taxonomy'
,
'translation'
,
'user'
);
$path
=
drupal_get_path
(
'module'
,
'views'
);
$loader
=
drupal_classloader
();
foreach
(
$core_modules
as
$module
)
{
if
(
function_exists
(
$module
.
'_views_api'
))
{
$name
=
$module
.
'\\Plugins'
;
$loader
->
registerNamespace
(
'Drupal\\'
.
$name
,
DRUPAL_ROOT
.
'/'
.
$path
.
'/lib'
);
}
}
}
/**
* Implements hook_ctools_exportable_info().
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment