Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Developer Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Documentation
Docs
Developer Documentation
Commits
38464e62
Commit
38464e62
authored
7 years ago
by
Sean Madsen
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of github.com:civicrm/civicrm-dev-docs
parents
7ebbdc32
b6507ee1
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docs/dev-tools/debugging.md
+25
-5
25 additions, 5 deletions
docs/dev-tools/debugging.md
docs/hooks/hook_civicrm_alterBarcode.md
+2
-2
2 additions, 2 deletions
docs/hooks/hook_civicrm_alterBarcode.md
docs/hooks/hook_civicrm_summaryActions.md
+14
-1
14 additions, 1 deletion
docs/hooks/hook_civicrm_summaryActions.md
with
41 additions
and
8 deletions
docs/dev-tools/debugging.md
+
25
−
5
View file @
38464e62
...
...
@@ -84,11 +84,31 @@ The following values can be added to your site's settings file `civicrm.settings
## Viewing a query log from MySQL
Outside of CiviCRM, the MySQL database software has features to enable the logging of all queries it receives.
*TODO: how do we enable?*
Outside of CiviCRM, the MySQL general query log allows MySQL to log all queries. This is a performance killer, so avoid using it in production!
*
[
MySQL reference: General Query Log
](
https://dev.mysql.com/doc/refman/en/query-log.html
)
The relevant settings are:
# Location of the query log
general_log_file=/tmp/mysql.log
# Enable/disable the query log
general_log=1
You can enable the query log at runtime via SQL, provided the path to the logfile is configured.
SET GLOBAL general_log = 'ON';
SET GLOBAL general_log = 'OFF';
And you can inspect the query log settings also:
mysql> show variables like '%general%';
+------------------+---------------------------------+
| Variable_name | Value |
+------------------+---------------------------------+
| general_log | OFF |
| general_log_file | /usr/local/var/mysql/strike.log |
+------------------+---------------------------------+
## Changing source code
...
...
This diff is collapsed.
Click to expand it.
docs/hooks/hook_civicrm_alterBarcode.md
+
2
−
2
View file @
38464e62
...
...
@@ -7,7 +7,7 @@ Available in 4.4+.
## Definition
hook_civicrm_alterBarcode( &$data, $type='barcode' $context='name_badge' );
hook_civicrm_alterBarcode( &$data, $type='barcode'
,
$context='name_badge' );
## Parameters
...
...
@@ -28,4 +28,4 @@ Available in 4.4+.
// change the encoding of barcode
$data['current_value'] = $data['event_id'] . '-' . $data['participant_id'] . '-' . $data['contact_id'];
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
docs/hooks/hook_civicrm_summaryActions.md
+
14
−
1
View file @
38464e62
...
...
@@ -51,4 +51,17 @@ Summary Page.
'key' => 'casework',
'href' => '/casework/recording_form
);
}
\ No newline at end of file
}
**Add an item to the third column of action list**
function mymodulename_civicrm_summaryActions(&$actions, $contactID)
{
$actions
[
'otherActions'
][
'casework'
]
= array(
'title' => 'Record casework',
'weight' => 999,
'ref' => 'record-casework',
'key' => 'casework',
'href' => '/casework/recording_form
);
}
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