i am using profile2 module, i create some profile types, but in profile section in admin/structure/profiles i can't ordering them,is this profile default or this is only my problem? i means if i add another profile type it just come below of anothers and any feature to ordering them

can i ordering them in form_alter?

function hook_form_alter($form,$form_state){
   change order of theme here ??? how

closed as too broad by kiamlaluno Jul 21 at 17:40

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


Yes, by default profile2 module not cosidered any ordering of it's profile types. if you want to change default ordering of them you have some solution. create a template file for user_profile . Another way is ordering them with form alter in your custom module

function hook_form_alter(&$form,$form_state) {
 if ($form_id == 'user_profile_form') {
     // do this for all your profile types
     $form['profile_yourprofiletype']['#weight'] = 'your optional order';

Not the answer you're looking for? Browse other questions tagged or ask your own question.