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
project
Commits
2511e9c5
Commit
2511e9c5
authored
Oct 05, 2017
by
drumm
Browse files
Coding standards fixes
parent
ba7ff60c
Changes
6
Hide whitespace changes
Inline
Side-by-side
README.txt
View file @
2511e9c5
...
...
@@ -23,5 +23,3 @@ the project module: http://drupal.org/node/add/project_issue/project.
The project family of modules is currently co-maintained by:
- Derek Wright (dww) https://drupal.org/user/46549
- Neil Drumm (drumm) https://drupal.org/user/3064
package/project_package.install
View file @
2511e9c5
...
...
@@ -6,14 +6,14 @@
*/
/**
* Implement hook_install().
* Implement
s
hook_install().
*/
function
project_package_install
()
{
db_query
(
"UPDATE
{
system
}
SET weight = 3 WHERE name = 'project_package'"
);
}
/**
* Implement
ation
of hook_schema().
* Implement
s
of hook_schema().
*/
function
project_package_schema
()
{
$schema
[
'project_package_local_release_item'
]
=
array
(
...
...
package/views/project_package.views.inc
View file @
2511e9c5
...
...
@@ -6,7 +6,7 @@
*/
/**
* Implement hook_views_data().
* Implement
s
hook_views_data().
*/
function
project_package_views_data
()
{
$data
=
array
();
...
...
package/views/project_package.views_default.inc
View file @
2511e9c5
...
...
@@ -6,11 +6,11 @@
*/
/**
* Implement hook_views_default_views().
* Implement
s
hook_views_default_views().
*/
function
project_package_views_default_views
()
{
// Search the "default_views" subdirectory for files ending in .view.php.
$files
=
file_scan_directory
(
drupal_get_path
(
'module'
,
'project_package'
)
.
'/views/default_views'
,
'/view\.php$/'
);
$files
=
file_scan_directory
(
drupal_get_path
(
'module'
,
'project_package'
)
.
'/views/default_views'
,
'/view\.php$/'
);
foreach
(
$files
as
$absolute
=>
$file
)
{
// This is not require_once because it's possible that
// hook_views_default_views() gets called more than once.
...
...
plugins/entityreference_selection/project_behavior.inc
View file @
2511e9c5
...
...
@@ -4,5 +4,5 @@ $plugin = array(
'title'
=>
t
(
'Project: Project behavior'
),
'class'
=>
'Project_SelectionHandler_ProjectBehavior'
,
'parent'
=>
'EntityReference_SelectionHandler_Generic'
,
'weight'
=>
0
'weight'
=>
0
,
);
project.module
View file @
2511e9c5
...
...
@@ -31,8 +31,7 @@ function project_form_field_ui_field_edit_form_alter(&$form) {
}
/**
* Implements hook_form_FORM_ID_alter(), altering
* apachesolr_search_field_bias_form().
* Implements hook_form_FORM_ID_alter().
*/
function
project_form_apachesolr_search_bias_form_alter
(
&
$form
)
{
if
(
isset
(
$form
[
'field_bias'
][
'ss_field_project_machine_name'
]))
{
...
...
@@ -59,7 +58,7 @@ function project_node_is_project($node) {
* @param string $node_type
* The node type (machine name) to check.
*
* @return bool
ean
* @return bool
* Is the given node type a project node type or not?
*/
function
project_node_type_is_project
(
$node_type
)
{
...
...
@@ -168,7 +167,7 @@ function project_ctools_plugin_api($module, $api) {
}
/**
* Implement
at
s hook_menu().
* Implements hook_menu().
*/
function
project_menu
()
{
$items
=
array
();
...
...
@@ -278,7 +277,7 @@ function project_promote_project_page($node) {
* @param $node
* A fully-loaded node object representing the project.
*
* @return bool
ean
* @return bool
* TRUE if the given node is a sandbox project, FALSE if full.
*/
function
project_promote_project_is_sandbox
(
$node
)
{
...
...
@@ -292,7 +291,7 @@ function project_promote_project_is_sandbox($node) {
* @param $project
* A fully-loaded node object representing the project to generate
* breadcrumbs for.
* @param bool
ean
$include_project
* @param bool $include_project
* Should the breadcrumb trail include a link to the project itself?
* @param array $extra
* An array of additional breadcrumb links to include after the main
...
...
@@ -698,7 +697,7 @@ function project_permission_load($project) {
}
/**
* Implement hook_project_permission_info()
* Implement
s
hook_project_permission_info()
.
*/
function
project_project_permission_info
(
$project
=
NULL
)
{
return
array
(
...
...
@@ -1058,7 +1057,7 @@ function project_get_nid_from_machinename($machinename) {
}
/**
* Implements hook_modules_enabled().
Sets default pathauto patterns.
* Implements hook_modules_enabled().
*/
function
project_project_modules_enabled
(
$modules
)
{
if
(
in_array
(
'pathauto'
,
$modules
))
{
...
...
@@ -1098,11 +1097,11 @@ function project_form_pathauto_patterns_form_alter(&$form, &$form_state) {
}
/**
* Implements hook_pathauto_alias_alter(). If available, use the project type's
* sandbox alias.
* Implements hook_pathauto_alias_alter().
*/
function
project_pathauto_alias_alter
(
&
$alias
,
array
&
$context
)
{
if
(
$context
[
'module'
]
===
'node'
&&
project_node_type_is_project
(
$context
[
'type'
])
&&
(
$context
[
'op'
]
===
'insert'
||
$context
[
'op'
]
===
'update'
))
{
// If available, use the project type's sandbox alias.
$sandbox_pattern
=
variable_get
(
'pathauto_node_'
.
$context
[
'type'
]
.
'_pattern_sandbox'
,
''
);
if
(
!
empty
(
$sandbox_pattern
)
&&
project_promote_project_is_sandbox
(
$context
[
'data'
][
'node'
]))
{
$context
[
'pattern'
]
=
$sandbox_pattern
;
...
...
@@ -1180,7 +1179,7 @@ function theme_project_add_landing_page($variables) {
* @param $account
* A user object. If not provided, the current user is used.
*
* @return bool
ean
* @return bool
* User can or cannot create a project.
*/
function
project_user_can_create_project
(
$account
=
NULL
)
{
...
...
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