Adding new parameters via hook

rojanu aliustek at gmail.com
Sat Jan 8 13:49:49 UTC 2011


I am trying to add new params to bugzilla via hook;

sub config_modify_panels {
    my ($self, $args) = @_;
    my $panels = $args->{panels};
    my $auth_params = $panels->{'auth'}->{params};

    push(@$auth_params, { name => 'password_history_length',
                          type => 't',
                          default => 0,
                          value => 0,
                          checker => \&check_numeric });

    push(@$auth_params, { name => 'password_reset_period',
                          type => 't',
                          default => 0,
                          checker => \&check_numeric });

    my $auth_param_descs = $panels->{'auth'}->{param_descs}
}

after running checksetup.pl both params appear on the UI but data/
params hasn't got it.

Is this the way to add new params?
And, how would one add parameter description via hook, I couldn't see
any hooks nor example code for it?
_______________________________________________
dev-apps-bugzilla mailing list
dev-apps-bugzilla at lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-apps-bugzilla



More information about the developers mailing list