Question: I have a function in two variables in MATLAB. I want to fix one variable, get the maxima of the resultant function, then change the value of the variable and again get the maxima, and so on. How can I get all the resulting maxima in one step or one vector? The variation in the second variable is a continuous one, not a discrete one.

Answer: 
You can use the [Prepopulate](http://drupal.org/project/prepopulate) module which is thought for exactly this purpose.

As shown in the project page, a URL like `http://example.com/node/add/blog?edit[title]=this%20is%20the%20title` would pre-populate the title with *this is the title*.

The module can be used with every form, and it has an official release that is used (on August 6, 2017) from [5004 sites](http://drupal.org/project/usage/prepopulate).

Before January 1, 2013, the usage of the module was the following.

> 
> [![screenshot](https://i.stack.imgur.com/TrqEt.png)](https://i.stack.imgur.com/TrqEt.png)
> 
> 
> 

As of August 18, 2017, the usage of the module for Drupal 6 decreased, since Drupal 6 is not officially supported anymore, but the total usage slightly increased thanks to its usage in Drupal 7 and Drupal 8 sites.

> 
> [![screenshot](https://i.stack.imgur.com/tavcD.png)](https://i.stack.imgur.com/tavcD.png)
> 
> 
>
If you go to "www.mysite.com/node/add/deal/26" the following code will print The number passed in url was: 26

Here is the code:

```
function my_module_menu()
{
    $items = array();

    $items['node/add/deal/%'] = array(
        'title'           => 'Add deal',
        'page callback'   => 'drupal_get_form',
        'page arguments'  => array('node_add_deal_form', 3),
        'access callback' => array(TRUE),
        'type'            => MENU_CALLBACK,
    );

    return $items;
}

function node_add_deal_form($form, &$form_state, $number)
{
    $form = array();

    $form['number'] = array(
        '#markup' => '<p>The number passed in url was: '. $number. '</p>',
    );

    return $form;
}

```