Skip to content

Missing option to disable title prefix #12

@yorkshire-pudding

Description

@yorkshire-pudding

When a node is cloned, the title is prefixed with "Clone of "

I wondered if this should be possible so searched the code base for the phrase.
Lines 245-247 of clone.pages.inc

  if ($prefix_title) {
    $node->title = t('Clone of !title', array('!title' => $node->title));
  }

Searched for $prefix_title and found where it looks like it should be set:
Within function clone_action_clone_form($context)
Lines 301-306 of clone.module

 $form['clone_context']['prefix_title'] = array(
    '#title' => t('Prefix title'),
    '#type' => 'checkbox',
    '#description' => t('Should cloned node tiles be prefixed?'),
    '#default_value' => isset($context['clone_context']['prefix_title']) ? $context['clone_context']['prefix_title'] : 1,
  );

Seems to be other stuff in that function that gives the option for substituting strings in title or body. I can't see that function anywhere in the config screens.
I could hack the module to remove the prefixing but that doesn't seem a sustainable way forward. Any ideas how to get this form to show up and take effect?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions