function linkicon_simplify_settings in Link Icon 7
Returns simplified linkicon settings without `linkicon_` prefix.
2 calls to linkicon_simplify_settings()
- linkicon_field_formatter_view in ./
linkicon.module - Implements hook_field_formatter_view().
- _linkicon_field_formatter_settings_form in includes/
linkicon.admin.inc - Implements hook_field_formatter_settings_form().
File
- ./
linkicon.module, line 34 - A link field formatter to create icon classes based on predefined titles.
Code
function linkicon_simplify_settings(array $configs = array()) {
$settings = array();
foreach (array_merge(linkicon_defaults(), $configs) as $key => $value) {
$settings[str_replace('linkicon_', '', $key)] = $value;
}
return $settings;
}