Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I created a custom field type that is basically a combination of text fields with some extra processing. I wanted to be able to use my new field in a realname, but found that realname explicitly looks for type 'text' to choose which fields to add.
I'm not sure if this is the best approach, but it enables custom cck field types to announce that they are able to be used in a realname.
It'd be great if something like this could make it in. I've attached a patch, which once applied, other cck field modules can use it as follows:
function hook_field_settings($op, $field) {
switch ($op) {
case 'form':
$form['realname_capable'] = array(
'#type' => 'value',
'#value' => TRUE,
);
return $form;
case 'save':
return array( 'realname_capable');
break;
}
Comment | File | Size | Author |
---|---|---|---|
realname-content_profile-custom-cck-fields.patch | 1.78 KB | cdale | |
Comments
Comment #1
hass CreditAttribution: hass commented