| 1 |
<?php |
<?php |
| 2 |
// $Id$ |
// $Id: image_attach_default.module,v 1.1 2008/10/30 07:18:29 cgardner Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 10 |
*/ |
*/ |
| 11 |
|
|
| 12 |
/** |
/** |
| 13 |
* Implementation of hook_form_alter() |
* Implementation of hook_form_alter(). |
| 14 |
* |
* |
| 15 |
* @param string ID of the form being altered |
* @param string ID of the form being altered |
| 16 |
* @param array Actual Form being altered |
* @param array Actual Form being altered |
| 17 |
* @return void |
* @return void |
| 18 |
* @author Craig Gardner |
* @author Craig Gardner |
| 19 |
**/ |
**/ |
| 20 |
function image_attach_default_form_alter($form_id, &$form) { |
function image_attach_default_form_alter(&$form, $form_state, $form_id) { |
| 21 |
if ($form_id == 'image_attach_admin_settings') { |
if ($form_id == 'image_attach_admin_settings') { |
| 22 |
|
|
| 23 |
$content_types = node_get_types(); |
$content_types = node_get_types(); |
| 24 |
|
|
| 25 |
$form['image_attach_existing']['#weight'] = -1; |
$form['image_attach_existing']['#weight'] = -1; |