Forked from
Documentation / Docs / Developer Documentation
1592 commits behind the upstream repository.
-
Seamus Lee authoredSeamus Lee authored
hook_civicrm_buildProfile.md 595 B
hook_civicrm_buildProfile
Summary
This hook is called while preparing a profile form. This form allows for extension authors to add various scripts onto the profile pages. Note that hook_civicrm_buildForm
is not fired for profile pages
Definition
buildProfile($profileName)
Parameters
- $profileName - the (machine readable) name of the profile.
Returns
- null
function myext_civicrm_buildProfile($profileName) {
if ($profileName === 'MyTargetedProfile) {
CRM_Core_Resources::singleton()->addScriptFile('org.example.myext', 'some/fancy.js', 100);
}
}