diff --git a/sites/all/modules/playbox_users/playbox_users.features.field_base.inc b/sites/all/modules/playbox_users/playbox_users.features.field_base.inc new file mode 100644 index 000000000..03fac8cb3 --- /dev/null +++ b/sites/all/modules/playbox_users/playbox_users.features.field_base.inc @@ -0,0 +1,44 @@ + 1, + 'cardinality' => 1, + 'deleted' => 0, + 'entity_types' => array(), + 'field_name' => 'field_playbox_user_team', + 'foreign keys' => array(), + 'indexes' => array( + 'value' => array( + 0 => 'value', + ), + ), + 'locked' => 0, + 'module' => 'list', + 'settings' => array( + 'allowed_values' => array( + 'presidents' => 'Presidents', + 'robots' => 'Robots', + ), + 'allowed_values_function' => '', + ), + 'translatable' => 0, + 'type' => 'list_text', + ); + + return $field_bases; +} + +function playbox_form_user_profile_form_alter(&$form, &$form_id, $form_state){ + dsm($form); +} diff --git a/sites/all/modules/playbox_users/playbox_users.info b/sites/all/modules/playbox_users/playbox_users.info new file mode 100644 index 000000000..cac4f8238 --- /dev/null +++ b/sites/all/modules/playbox_users/playbox_users.info @@ -0,0 +1,9 @@ +name = Playbox Users +core = 7.x +package = Playbox +version = 7.x-1.0-alpha1 +project = playbox_users +dependencies[] = features +dependencies[] = list +features[features_api][] = api:2 +features[field_base][] = field_playbox_user_team diff --git a/sites/all/modules/playbox_users/playbox_users.module b/sites/all/modules/playbox_users/playbox_users.module new file mode 100644 index 000000000..097ea6fb6 --- /dev/null +++ b/sites/all/modules/playbox_users/playbox_users.module @@ -0,0 +1,17 @@ +uid); + // Get team from user entity + if ($items = field_get_items('user', $account, 'field_playbox_user_team')) { + $playbox_user_team = $items[0]; + } +} + +function playbox_users_form_user_profile_form_alter(&$form, &$form_state, $form_id){ + dsm($form); +}