Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443915
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
drupal-3443915
Commits
625cb74a
Commit
625cb74a
authored
12 years ago
by
Tim Plunkett
Browse files
Options
Downloads
Patches
Plain Diff
Remove the obsolete includes/plugins.inc.
parent
7c26528e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/plugins.inc
+0
-70
0 additions, 70 deletions
includes/plugins.inc
with
0 additions
and
70 deletions
includes/plugins.inc
deleted
100644 → 0
+
0
−
70
View file @
7c26528e
<?php
/**
* @file
* Built in plugins for Views output handling.
*/
use
Drupal\views\ViewsObject
;
/**
* Builds and return a list of all plugins available in the system.
*
* @return Nested array of plugins, grouped by type.
*/
function
views_discover_plugins
()
{
$cache
=
array
(
'display'
=>
array
(),
'style'
=>
array
(),
'row'
=>
array
(),
'argument default'
=>
array
(),
'argument validator'
=>
array
(),
'access'
=>
array
(),
'cache'
=>
array
(),
'exposed_form'
=>
array
());
// Get plugins from all mdoules.
foreach
(
module_implements
(
'views_plugins'
)
as
$module
)
{
$function
=
$module
.
'_views_plugins'
;
$result
=
$function
();
if
(
!
is_array
(
$result
))
{
continue
;
}
$module_dir
=
isset
(
$result
[
'module'
])
?
$result
[
'module'
]
:
$module
;
// Setup automatic path/file finding for theme registration
if
(
$module_dir
==
'views'
)
{
$theme_path
=
drupal_get_path
(
'module'
,
$module_dir
)
.
'/theme'
;
$theme_file
=
'theme.inc'
;
$path
=
drupal_get_path
(
'module'
,
$module_dir
)
.
'/plugins'
;
}
else
{
$theme_path
=
$path
=
drupal_get_path
(
'module'
,
$module_dir
);
$theme_file
=
"
$module
.views.inc"
;
}
foreach
(
$result
as
$type
=>
$info
)
{
if
(
$type
==
'module'
)
{
continue
;
}
foreach
(
$info
as
$plugin
=>
$def
)
{
$def
[
'module'
]
=
$module_dir
;
if
(
!
isset
(
$def
[
'theme path'
]))
{
$def
[
'theme path'
]
=
$theme_path
;
}
if
(
!
isset
(
$def
[
'theme file'
]))
{
$def
[
'theme file'
]
=
$theme_file
;
}
if
(
!
isset
(
$def
[
'path'
]))
{
$def
[
'path'
]
=
$path
;
}
// if (!isset($def['file'])) {
// $def['file'] = $def['handler'] . '.inc';
// }
if
(
!
isset
(
$def
[
'parent'
]))
{
$def
[
'parent'
]
=
'parent'
;
}
// Set the internal name to be able to read it out later.
$def
[
'name'
]
=
$plugin
;
// merge the new data in
$cache
[
$type
][
$plugin
]
=
$def
;
}
}
}
// Let other modules modify the plugins.
drupal_alter
(
'views_plugins'
,
$cache
);
return
$cache
;
}
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