| 1 |
<?php |
<?php |
| 2 |
// $Id:$ |
// $Id: linkimagefield.install,v 1.2 2008/11/27 06:15:54 challakamal Exp $ |
| 3 |
|
/** |
| 4 |
|
* @file |
| 5 |
|
* linkimagefield install file |
| 6 |
|
*/ |
| 7 |
|
|
| 8 |
/** |
/** |
| 9 |
* Implementation of hook_install(). |
* Implementation of hook_install(). |
| 39 |
return $ret; |
return $ret; |
| 40 |
} |
} |
| 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
/** |
/** |
| 43 |
* Schema change to enable alt and title tags. |
* Schema change to enable alt and title tags. |
| 44 |
*/ |
*/ |
| 61 |
'fid' => array('type' => 'int', 'not null' => TRUE, 'default' => '0'), |
'fid' => array('type' => 'int', 'not null' => TRUE, 'default' => '0'), |
| 62 |
'title' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''", 'sortable' => TRUE), |
'title' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''", 'sortable' => TRUE), |
| 63 |
'alt' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''", 'sortable' => TRUE), |
'alt' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''", 'sortable' => TRUE), |
| 64 |
'url' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''", 'sortable' => TRUE), |
'url' => array('type' => 'varchar', 'length' => 255, 'not null' => TRUE, 'default' => "''", 'sortable' => TRUE), |
| 65 |
); |
); |
| 66 |
content_alter_db_field($field, $oldcolumns, $field, $newcolumns); |
content_alter_db_field($field, $oldcolumns, $field, $newcolumns); |
| 67 |
break; |
break; |
| 68 |
} |
} |
| 69 |
drupal_set_message('altered: <br /><pre>'. print_r($field, true) .'</pre>'); |
drupal_set_message('altered: <br /><pre>'. print_r($field, TRUE) .'</pre>'); |
| 70 |
} |
} |
| 71 |
|
|
| 72 |
|
|
| 73 |
db_query('DELETE FROM {cache}'); |
db_query('DELETE FROM {cache}'); |
| 74 |
return $ret; |
return $ret; |
| 75 |
} |
} |
|
|
|
|
|
|
|
|
|