Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
B
bat_api
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
0
Merge Requests
0
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
bat_api
Commits
fc00c0f4
Commit
fc00c0f4
authored
Nov 23, 2016
by
Nicolò Caruso
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve code style
parent
6efe0535
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
10 deletions
+10
-10
bat_api.api.php
bat_api.api.php
+3
-3
bat_api.module
bat_api.module
+5
-5
includes/bat_api.bat_type_field_handler.inc
includes/bat_api.bat_type_field_handler.inc
+1
-1
includes/bat_api.bat_unit_field_handler.inc
includes/bat_api.bat_unit_field_handler.inc
+1
-1
No files found.
bat_api.api.php
View file @
fc00c0f4
...
...
@@ -10,7 +10,7 @@
/**
* Alter units index calendar.
*
* @param $units
* @param
array
$units
*/
function
hook_bat_api_units_index_calendar_alter
(
&
$units
)
{
// No example.
...
...
@@ -19,8 +19,8 @@ function hook_bat_api_units_index_calendar_alter(&$units) {
/**
* Alter events index calendar.
*
* @param $events
* @param $context
* @param
array
$events
* @param
array
$context
*/
function
hook_bat_api_events_index_calendar_alter
(
&
$events
,
$context
)
{
// No example.
...
...
bat_api.module
View file @
fc00c0f4
...
...
@@ -73,7 +73,7 @@ function bat_api_permission() {
'title'
=>
t
(
'Access edit unit service'
),
'description'
=>
t
(
'Access edit unit service.'
),
),
'access add unit service'
=>
array
(
'access add unit service'
=>
array
(
'title'
=>
t
(
'Access add unit service'
),
'description'
=>
t
(
'Access add unit service.'
),
),
...
...
@@ -875,7 +875,7 @@ function bat_api_services_events_index_calendar($unit_ids, $unit_types, $start_d
continue
;
}
// Get the event type definition from Drupal
// Get the event type definition from Drupal
.
$bat_event_type
=
bat_event_type_load
(
$type
);
$target_entity_type
=
$bat_event_type
->
target_entity_type
;
...
...
@@ -1084,7 +1084,7 @@ function _bat_api_merge_non_blocking_events($events) {
* @param string $unit_types
* @param string $start_date
* @param string $end_date
* @param string $event_type
s
* @param string $event_type
* @param string $event_states
*/
function
bat_api_services_matching_units_calendar
(
$unit_types
,
$start_date
,
$end_date
,
$event_type
,
$event_states
)
{
...
...
@@ -1102,7 +1102,7 @@ function bat_api_services_matching_units_calendar($unit_types, $start_date, $end
$events_json
=
array
();
// Get the event type definition from Drupal
// Get the event type definition from Drupal
.
$bat_event_type
=
bat_event_type_load
(
$event_type
);
$target_entity_type
=
$bat_event_type
->
target_entity_type
;
...
...
@@ -1203,7 +1203,7 @@ function bat_api_services_types_index($type_ids, $offset, $limit) {
$ids
=
array_filter
(
explode
(
','
,
$type_ids
));
$query
=
db_select
(
'bat_types'
,
'n'
)
->
fields
(
'n'
,
array
(
'type_id'
,
'type'
,
'name'
,
'language'
,
'status'
,
'uid'
));
->
fields
(
'n'
,
array
(
'type_id'
,
'type'
,
'name'
,
'language'
,
'status'
,
'uid'
));
if
(
!
empty
(
$ids
))
{
$query
->
condition
(
'type_id'
,
$ids
,
'IN'
);
}
...
...
includes/bat_api.bat_type_field_handler.inc
View file @
fc00c0f4
...
...
@@ -27,7 +27,7 @@ interface BatTypeFieldHandlerInterface {
abstract
class
BatTypeFieldHandlerBase
implements
BatTypeFieldHandlerInterface
{
/**
*
*
@var BatType
*/
protected
$type
;
...
...
includes/bat_api.bat_unit_field_handler.inc
View file @
fc00c0f4
...
...
@@ -27,7 +27,7 @@ interface BatUnitFieldHandlerInterface {
abstract
class
BatUnitFieldHandlerBase
implements
BatUnitFieldHandlerInterface
{
/**
*
*
@var BatUnit
*/
protected
$unit
;
...
...
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