code: function updatePageRules(connections, options, form, pageRules, cb) {
    var validate = validation(pageRules);
    function validateParams(cb) {
      validate.has("formId","rules",cb);
    }
    validateParams(function(err) {
      if (err) {
        return cb(err);
      }
      groups.validateFormAllowedForUser(connections, null, form._id, function(err) {
        if (err) {
          return cb(err);
        }
        var conn = connections.mongooseConnection;
        var pageRulesModel = models.get(conn, models.MODELNAMES.PAGE_RULE);
        doRulesUpdate(options, form, pageRules, pageRulesModel, Rules.PAGE_RULE, cb);
      });
    });
  }
docs: /*
  updatePageRules(connections, options, formData, cb)
  
  connections: {
  mongooseConnection: ...
  }
  
  options: {
  uri:       db connection string,
  userEmail: user email address string
  }
  
  pageRules: {
  formId: id of parent form
  rules: pagerules
  }
  
  cb  - callback function (err)