| 1 |
<?php |
<?php |
| 2 |
// $Id: comment_alter_taxonomy.module,v 1.12 2009/01/05 02:21:00 damz Exp $ |
// $Id: comment_alter_taxonomy.module,v 1.13 2009/01/26 18:31:01 damz Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 35 |
} |
} |
| 36 |
|
|
| 37 |
/** |
/** |
| 38 |
|
* Implementation of hook_views_api(). |
| 39 |
|
*/ |
| 40 |
|
function comment_alter_taxonomy_views_api() { |
| 41 |
|
return array('api' => 2.0); |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
/** |
| 45 |
* Administration settings form. |
* Administration settings form. |
| 46 |
*/ |
*/ |
| 47 |
function comment_alter_taxonomy_admin_settings() { |
function comment_alter_taxonomy_admin_settings() { |
| 71 |
// {comment_alter_taxonomy} may need to be updated if any comments are edited/deleted. |
// {comment_alter_taxonomy} may need to be updated if any comments are edited/deleted. |
| 72 |
$form['#submit'][] = 'comment_alter_taxonomy_comment_mass_update'; |
$form['#submit'][] = 'comment_alter_taxonomy_comment_mass_update'; |
| 73 |
} |
} |
| 74 |
elseif (isset($form['type']) && $form['type']['#value'] .'_node_form' == $form_id && isset($form['nid']['#value'])) { |
elseif (isset($form['type']['#value']) && $form['type']['#value'] .'_node_form' == $form_id && isset($form['nid']['#value'])) { |
| 75 |
// Prevent user from changing the terms for any vocabulary that can be altered from a comment with this |
// Prevent user from changing the terms for any vocabulary that can be altered from a comment with this |
| 76 |
// module. |
// module. |
| 77 |
if (isset($form['taxonomy'])) { |
if (isset($form['taxonomy'])) { |