function _civicrm_entity_price_set_field_prepare_simple_widget in CiviCRM Entity 7.2
Helper function to create FAPI form element for the Simple widget
Parameters
$price_set_id:
$instance:
$element:
1 call to _civicrm_entity_price_set_field_prepare_simple_widget()
- civicrm_entity_price_set_field_field_widget_form in modules/
civicrm_entity_price_set_field/ civicrm_entity_price_set_field.module - Implements hook_field_widget_form().
File
- modules/
civicrm_entity_price_set_field/ civicrm_entity_price_set_field.module, line 664
Code
function _civicrm_entity_price_set_field_prepare_simple_widget($price_set_id, $instance, &$element) {
$entity_type = $instance['entity_type'];
switch ($entity_type) {
case 'civicrm_event':
break;
}
// setup price set form elements
$element['price_set'] = array(
'#type' => 'fieldset',
'#title' => t($instance['label']),
'#collapsible' => TRUE,
'#collapsed' => FALSE,
);
}