| 1 |
<?php |
<?php |
| 2 |
// $Id: comment_subscribe.install,v 1.2.2.3 2009/01/30 08:23:50 zyxware Exp $ |
// $Id: comment_subscribe.install,v 1.2.2.4 2009/05/20 07:05:26 zyxware Exp $ |
| 3 |
/** |
/** |
| 4 |
* @file |
* @file |
| 5 |
* comment_subscribe.install. |
* comment_subscribe.install. |
| 144 |
db_query('UPDATE {comment_notify} SET notify = %d WHERE cid = %d', $notify, |
db_query('UPDATE {comment_notify} SET notify = %d WHERE cid = %d', $notify, |
| 145 |
$subscription_vals->cid); |
$subscription_vals->cid); |
| 146 |
} |
} |
| 147 |
|
// Provide an explaination of what we did. |
| 148 |
|
$ret[] = array('success' => TRUE, 'query' => t('Moved comment_subscribe subscription data from the {comment_subscribe} table to the {comment_notify} table.')); |
| 149 |
|
|
| 150 |
} |
} |
| 151 |
else { |
else { |
| 152 |
drupal_set_message('Comment Notify module not yet enabled. Please enable the module for migrating from comment subscribe to comment notify.'); |
$ret[] = array('success' => FALSE, 'query' => t('Comment Notify module not yet enabled. Please enable the module for migrating from comment subscribe to comment notify. You will need to run this update again.')); |
| 153 |
} |
} |
| 154 |
return $ret; |
return $ret; |
| 155 |
} |
} |