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;
}

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hass’s picture

Issue summary: View changes
Status: Needs review » Closed (outdated)