You are here

function freelinking_form_alter in Freelinking 5

Same name and namespace in other branches
  1. 6 freelinking.module \freelinking_form_alter()
  2. 6.2 freelinking.module \freelinking_form_alter()

File

./freelinking.module, line 370

Code

function freelinking_form_alter($form_id, &$form) {
  $type = $form['type']['#value'];
  if (variable_get('freelinking_nodetype', 'story') == $type && $_GET['edit']) {

    // on the right node type, with GET data
    $form['title']['#default_value'] = urldecode($_GET['edit']['title']);

    // prepopulate the title field
  }

  // endif node type and data
}