Skip to content

Commit

Permalink
update money_format.module
Browse files Browse the repository at this point in the history
Update helt text
  • Loading branch information
Juan Eracleo Huamani Mendoza authored Feb 21, 2017
1 parent 29804dd commit d84b480
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions money_format.module
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ function money_format_field_formatter_settings_form($field, $instance, $view_mod
//Add your select box
$element['current_money'] = array(
'#type' => 'select',
'#title' => t('Format for price'),
'#description' => t('Select format for price'), // Helper text
'#title' => t('Money format'),
'#description' => t('Select money format'),
'#default_value' => $settings['current_money'],
'#options' => array(
'ud' => 'Similar to: USD 100',
Expand All @@ -49,9 +49,7 @@ function money_format_field_formatter_settings_form($field, $instance, $view_mod
* Implements hook_field_formatter_settings_summary().
*/
function money_format_field_formatter_settings_summary($field, $instance, $view_mode) {
$display = $instance['display'][$view_mode];
$settings = $display['settings'];
$summary = t('Select @format format for human',array('@format'=> $settings['current_money']));
$summary = t('Select money format');
return $summary;
}
/**
Expand Down Expand Up @@ -147,7 +145,6 @@ function money_format_field_formatter_view($entity_type, $entity, $field, $insta
$element[$delta] = array('#markup' => $output);
}
break;

}
return $element;
}

0 comments on commit d84b480

Please sign in to comment.