'title'=>t('E-mail: "Welcome (new user created by administrator)" template'),
'value'=>t('Not configured'),
'severity'=>REQUIREMENT_ERROR,
'description'=>t('Replace the token <code>[user:name]</code> with <code>[user:name-raw]</code> in <a href="@people">e-mail</a> template.',array('@people'=>url('admin/config/people/accounts',array('fragment'=>'edit-email-admin-created')))),
'title'=>t('E-mail: "Welcome (no approval required)" template'),
'value'=>t('Not configured'),
'severity'=>REQUIREMENT_ERROR,
'description'=>t('Replace the token <code>[user:name]</code> with <code>[user:name-raw]</code> in <a href="@people">e-mail</a> template.',array('@people'=>url('admin/config/people/accounts',array('fragment'=>'edit-email-no-approval-required')))),
'description'=>t('Replace the token <code>[user:name]</code> with <code>[user:name-raw]</code> in <a href="@people">e-mail</a> template.',array('@people'=>url('admin/config/people/accounts',array('fragment'=>'edit-email-activated')))),
);
}
}
return$requirements;
}
/**
* Implements hook_disable().
*/
functionrealname_disable(){
drupal_set_message('You need to replace the token <code>[user:name-raw]</code> with <code>[user:name]</code> in e-mail templates.','warning');
form_error($element,t('The %element-title does not contain realname token <code>[user:name-raw]</code>.',array('%element-title'=>$element['#title'])));
}
return$element;
}
/**
* Menu Access callback for the autocomplete widget.