All pastes #233773 Raw Edit

Stuff

public php v1 · immutable
·published 2006-11-02 03:23 UTC
rendered paste body
if (!$type->locked) {    $form['identity']['type'] = array(      '#title' => t('Type'),      '#type' => 'textfield',      '#default_value' => $type->type,      '#maxlength' => 32,      '#required' => TRUE,      '#description' => t('The machine-readable name of this content type. This text will be used for constructing the URL of the <em>create content</em> page for this content type. It is recommended that this name consists only of lowercase letters, numbers, and <strong>underscores</strong>. Dashes are not allowed. Underscores will be converted into dashes when constructing the URL of the <em>create content</em> page. The name must be unique to this content type.'),    );  }  else {    $form['identity']['type'] = array(      '#type' => 'value',      '#value' => $type->type,    );    $form['identity']['type_display'] = array(      '#title' => t('Type'),      '#type' => 'item',      '#value' => theme('placeholder', $type->type),      '#description' => t('The machine-readable name of this content type. This field cannot be modified for system-defined content types.'),    );  }