Skip to content
Snippets Groups Projects
Commit 8d6b0396 authored by Sean Madsen's avatar Sean Madsen Committed by GitHub
Browse files

Use long name for extension in example

I tried using this code with the short name and it didn't work.
When I changed my code to use my extension's long name, it worked.
parent f921778c
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,7 @@ function myextension_civicrm_coreResourceList(&$list, $region) {
// Note that if the file we want to add is outside civicrm directory
// (e.g. in an extension) we can't just append it to the list.
// But we can add it directly, which is what happens to items in this list anyway.
Civi::resources()->addStyleFile('myextension', 'css/my_style.css', 0, $region);
Civi::resources()->addStyleFile('org.civicrm.myextension', 'css/my_style.css', 0, $region);
// Add a setting - in this example we override the CKEditor config file location
$myCKEConfFile = Civi::resources()->getUrl('org.foo.myextension', 'js/my-ckeditor-config.js')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment