Removed obsolete $ in source files

This commit is contained in:
Manuel Cillero 2017-08-29 14:13:02 +02:00
parent a39c010e06
commit e5f2b64d98
146 changed files with 836 additions and 1081 deletions

View file

@ -1,7 +1,4 @@
<?php
// $Id: content_taxonomy_options.module,v 1.1.4.7.2.4 2008/12/27 11:25:27 mh86 Exp $
/**
* @file
* Defines a widget type for content_taxonomy for options
@ -56,7 +53,7 @@ function content_taxonomy_options_widget_settings($op, $widget) {
'#weight' => 10,
);
$form['settings']['show_depth'] = array(
'#type' => 'checkbox',
'#type' => 'checkbox',
'#title' => t('Indent child terms with \' - \' signs'),
'#default_value' => is_numeric($widget['show_depth']) ? $widget['show_depth'] : 1,
'#description' => t('If this option is checked, a hierarchy gets visualized by indenting child terms, otherwise it\'s a flat list'),
@ -69,7 +66,7 @@ function content_taxonomy_options_widget_settings($op, $widget) {
'#description' => t('This settings applies only for select fields. Select a parent term containg the grouping terms. Grouping terms should be parents of the selected terms (from the Global Settings).'),
);
return $form;
case 'save':
return array('group_parent', 'show_depth');
}
@ -80,7 +77,7 @@ function content_taxonomy_options_widget_settings($op, $widget) {
*/
function content_taxonomy_options_widget(&$form, &$form_state, $field, $items, $delta = NULL) {
$element = array(
'#type' => ($field['widget']['type'] == 'content_taxonomy_select') ? 'optionwidgets_select' : 'optionwidgets_buttons',
'#type' => ($field['widget']['type'] == 'content_taxonomy_select') ? 'optionwidgets_select' : 'optionwidgets_buttons',
'#default_value' => !empty($items) ? $items : array(),
);
return $element;