From 6eb95671cdf7029399942864ba9da3a23108822f Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 25 Dec 2015 22:01:28 -0500 Subject: [PATCH] CRM-17646 - Mark older hooks deprecated --- CRM/Utils/Hook.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CRM/Utils/Hook.php b/CRM/Utils/Hook.php index 706757b6d9..dc4907f3dd 100644 --- a/CRM/Utils/Hook.php +++ b/CRM/Utils/Hook.php @@ -767,8 +767,9 @@ abstract class CRM_Utils_Hook { } /** - * This hook is called when CiviCRM needs to edit/display a custom field with options (select, radio, checkbox, - * adv multiselect) + * This hook is called when CiviCRM needs to edit/display a custom field with options + * + * @deprecated in favor of hook_civicrm_fieldOptions * * @param int $customFieldID * The custom field ID. @@ -779,8 +780,7 @@ abstract class CRM_Utils_Hook { * to be careful to not overwrite the array. * Only add/edit/remove the specific field options you intend to affect. * @param bool $detailedFormat - * If true,. - * the options are in an ID => array ( 'id' => ID, 'label' => label, 'value' => value ) format + * If true, the options are in an ID => array ( 'id' => ID, 'label' => label, 'value' => value ) format * @param array $selectAttributes * Contain select attribute(s) if any. * @@ -1079,6 +1079,8 @@ abstract class CRM_Utils_Hook { /** * This hooks allows to change option values. * + * @deprecated in favor of hook_civicrm_fieldOptions + * * @param array $options * Associated array of option values / id * @param string $name -- 2.25.1