array ( 'rules' => array ( 'rules_3' => array ( '#type' => 'rule', '#set' => 'event_node_limitnumber_check_limit', '#label' => 'Authenicated Users create only 1 page', '#active' => 1, '#weight' => '0', '#categories' => array ( ), '#status' => 'custom', '#conditions' => array ( 0 => array ( '#weight' => -1, '#type' => 'condition', '#settings' => array ( 'type' => array ( 'page' => 'page', ), '#argument map' => array ( 'node' => 'node', ), ), '#name' => 'rules_condition_content_is_type', '#info' => array ( 'label' => 'Node is page', 'label callback' => false, 'arguments' => array ( 'node' => array ( 'type' => 'node', 'label' => 'Content', ), ), 'module' => 'Node', ), ), 1 => array ( '#info' => array ( 'label' => 'User has role(s)', 'arguments' => array ( 'user' => array ( 'type' => 'user', 'label' => 'User', ), ), 'module' => 'User', ), '#name' => 'rules_condition_user_hasrole', '#settings' => array ( 'roles' => array ( 0 => 2, ), 'operation' => 'OR', '#argument map' => array ( 'user' => 'user', ), ), '#type' => 'condition', '#weight' => 0, ), 2 => array ( '#weight' => 0, '#info' => array ( 'label' => 'Set the limit for the node type', 'module' => 'Node Limit Number', 'arguments' => array ( 'node' => array ( 'label' => 'Node', 'type' => 'node', ), 'user' => array ( 'label' => 'User', 'type' => 'user', ), ), ), '#name' => 'node_limitnumber_rules_condition_limit', '#settings' => array ( 'limit' => '1', 'time' => 'monthly', 'og' => 'none', '#argument map' => array ( 'node' => 'node', 'user' => 'user', ), ), '#type' => 'condition', ), 3 => array ( '#type' => 'condition', '#weight' => 0, '#settings' => array ( 'text1' => '[user:uid]', 'text2' => '6', 'regex' => 0, '#eval input' => array ( 'token_rules_input_evaluator' => array ( 'text1' => array ( 0 => 'user', ), ), ), ), '#name' => 'rules_condition_text_compare', '#info' => array ( 'label' => 'Textual comparison', 'arguments' => array ( 'text1' => array ( 'label' => 'Text 1', 'type' => 'string', ), 'text2' => array ( 'label' => 'Text 2', 'type' => 'string', ), ), 'module' => 'Rules', ), '#negate' => 1, ), ), '#actions' => array ( 0 => array ( '#type' => 'action', '#settings' => array ( 'path' => 'node', 'query' => '', 'fragment' => '', 'force' => 0, 'immediate' => 0, ), '#name' => 'rules_action_drupal_goto', '#info' => array ( 'label' => 'Page redirect', 'module' => 'System', 'eval input' => array ( 0 => 'path', 1 => 'query', 2 => 'fragment', ), ), '#weight' => 0, ), 1 => array ( '#weight' => 0, '#info' => array ( 'label' => 'Show a configurable message on the site', 'module' => 'System', 'eval input' => array ( 0 => 'message', ), ), '#name' => 'rules_action_drupal_message', '#settings' => array ( 'message' => 'You can only add one page to this site', 'error' => 1, ), '#type' => 'action', ), ), '#version' => 6003, ), ), )