function redhen_engagement_score_options in RedHen CRM 7
Helper function for getting engagement score options.
2 string references to 'redhen_engagement_score_options'
- RedhenEngagementMetadataController::entityPropertyInfo in modules/
redhen_engagement/ lib/ redhen_engagement.metadata.inc - Override parent to define entity propery metadat for engagements.
- redhen_engagement_rules_action_info in modules/
redhen_engagement/ redhen_engagement.rules.inc - Implements hook_rules_action_info().
File
- modules/
redhen_engagement/ redhen_engagement.module, line 426 - RedhenEngagement hook implementations and API
Code
function redhen_engagement_score_options() {
$scores = redhen_engagement_get_scores();
$options = array();
foreach ($scores as $score) {
$options[$score->name] = $score
->label();
}
return $options;
}