How to remove the create prefix text when adding new content? Tried a couple of attempts and no luck with function framework_preprocess

function framework_preprocess_ask_a_question(&amp;$vars, $hook) {
  if (arg(0) == 'node' &amp;&amp; arg(1) == 'add' &amp;&amp; arg(2) == 'ask_a_question') {
      $variables['title'] = 'Ask a new question';
   }
}


Content type is called "Ask a Question" want to change the title from "Create Ask a Question" to "Ask a new question" (removing the create text set by default)
You can use hook_form_FORM_ID_alter().

You could also use hook_form_BASE_FORM_ID_alter() or hook_form_alter() if you preferred or it fit better with your other custom code and requirements.

You would do something like this in a custom module:

/**
 * Implements hook_node_FORM_ID_alter().
 */
function MODULENAME_form_ask_a_qustion_node_form_alter(&amp;$form, &amp;$form_state) {
  // Only change the title on the add form, not the edit form.
  if (empty($form['nid']['#value'])) {
    drupal_set_title('Ask a new question');
  }
}


Or if you want to do multiple content types:

/**
 * Implements hook_node_BASE_FORM_ID_alter().
 *
 * Alter all node forms.
 */
function MODULENAME_form_node_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  // Only change the title on the add form, not the edit form.
  if (empty($form['nid']['#value'])) {
    $title = '';
    switch ($form_id) {
      case 'ask_a_qustion_node_form':
        $title = 'Ask a new question';
        break;
      case 'other node type_node_form':
        $title = 'Other title';
        break;
    }
    if ($title) {
      drupal_set_title($title);
    }
  }
}


There is also the node add title module that allows you to set the title of the add form per content type.
At a quick glance over the code of that module though I see a few issues so I personally wouldn't use it at this stage, although I will open some issues to try to get them fixed.