76 $requests = array_filter( $reqs,
function (
$req ) use ( $name ) {
88 if ( !isset( $data[
'label'] ) ) {
89 $data[
'label'] = new \RawMessage(
'$1', $data[
'name'] );
90 } elseif ( is_string( $data[
'label'] ) ) {
91 $data[
'label'] = new \Message( $data[
'label'] );
92 } elseif ( is_array( $data[
'label'] ) ) {
93 $data[
'label'] = call_user_func_array(
'Message::newFromKey', $data[
'label'] );
95 if ( !isset( $data[
'help'] ) ) {
96 $data[
'help'] = new \RawMessage(
'$1', $data[
'name'] );
97 } elseif ( is_string( $data[
'help'] ) ) {
98 $data[
'help'] = new \Message( $data[
'help'] );
99 } elseif ( is_array( $data[
'help'] ) ) {
100 $data[
'help'] = call_user_func_array(
'Message::newFromKey', $data[
'help'] );
102 $ret =
new static( $data[
'name'], $data[
'label'], $data[
'help'] );
103 foreach ( $data as $k => $v ) {
The Message class provides methods which fulfil two basic services:
this hook is for auditing only $req
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses & $ret
Allows to change the fields on the form that will be generated are created Can be used to omit specific feeds from being outputted You must not use this hook to add use OutputPage::addFeedLink() instead. & $feedLinks hooks can tweak the array to change how login etc forms should look $requests