public function onCCK_Field_TypoPrepareContent(&$field, $target = 'value', &$config = array()) { if (self::$type != $field->typo) { return; } // Prepare $typo = parent::g_getTypo($field->typo_options); $value = parent::g_hasLink($field, $typo, $field->{$target}); // Set if ($field->typo_label) { $field->label = self::_typo($typo, $field, $field->label, $config); } $field->typo = self::_typo($typo, $field, $value, $config); }
public function onCCK_Field_TypoPrepareContent(&$field, $target = 'value', &$config = array()) { if (self::$type != $field->typo) { return; } self::$path = JURI::root() . 'plugins/cck_field_typo/' . self::$type . '/'; // Prepare if ($field->value && $field->value != '') { $typo = parent::g_getTypo($field->typo_options); $field->typo = self::_typo($typo, $field, '', $config); } else { $field->typo = ''; } }
public function onCCK_Field_TypoPrepareContent(&$field, $target = 'value', &$config = array()) { if (self::$type != $field->typo) { return; } // Prepare $typo = parent::g_getTypo($field->typo_options); // Set if ($typo->get('html', '') == 'clear') { $field->display = 0; $field->type = ''; } else { if ($field->typo_label) { $field->label = self::_typo($typo, $field, '', $config); } $field->typo = self::_typo($typo, $field, '', $config); } }