The sub module protected_node_rules still has to be ported to drupal 7.

Comments

zilverdistel’s picture

Status: Active » Needs review

I ran it through the coder_upgrade module and committed the result in 7.x-1.x branch. Still needs to be tested.

zilverdistel’s picture

Changed the hook_rules_action_info() and hook_rules_condition_info() hooks to reflect the api changes for rules-7.x. Leaving this issue in status "needs review" until further testing has been done.

Commit: http://drupalcode.org/project/protected_node.git/commit/680d28b.

pjabode’s picture

I've been testing for simple password protecting on nodes. So far the only issue is when I unpublish a page I get the following error:

PDOException: SQLSTATE[HY000]: General error: 1366 Incorrect integer value: '' for column 'protected_node_is_protected' at row 1: INSERT INTO {protected_nodes} (protected_node_is_protected, protected_node_passwd, protected_node_show_title, nid, protected_node_hint) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4); Array ( [:db_insert_placeholder_0] => [:db_insert_placeholder_1] => [:db_insert_placeholder_2] => 0 [:db_insert_placeholder_3] => 22 [:db_insert_placeholder_4] => ) in _protected_node_save() (line 718 of C:\wamp\www\drupal-7.12.mySite\sites\all\modules\protected_node\protected_node.module).

I was able to delete the page with no error message.

zilverdistel’s picture

Status: Needs review » Closed (fixed)

Hi pjabode,

I'm closing this issue. If you're still getting the error, please file a new issue for this.

Thank you,

Diederik