User Tools

Site Tools


drupal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
drupal [2017/12/03 13:38] – [Updating Custom User fields] tomgledrupal [2025/02/08 13:13] (current) – [immich] 192.168.1.82
Line 1: Line 1:
-===== Drupal Tips =====+===== Proxmox Tips =====
  
-Some hints, tips and code samples for managing and extending Drupal.\\+Some hints, tips and code samples for managing and extending Proxmox.\\
  
 ===== Cron ===== ===== Cron =====
 +This is not Proxmox, just basic Cpanel info.\\
   * [[Using Cpanel to setup tasks]]   * [[Using Cpanel to setup tasks]]
  
-===== Directory Structure ===== +===== immich ===== 
- +  * [[Extend immich used memory]] 
-  * {{ ::basic_directory_structure_of_a_drupal_7_project_drupal.org_2017-11-28_9_06_50_am_.htm |Directory structure of Drupal 7}} +  * [[docker-compose]] for portainer stack
- +
-===== Externally Managing Users & Roles =====+
  
-  * {{ ::7_-_how_can_i_run_php_code_without_writing_a_module-_-_drupal_answers_2017-08-04_1-01-22_pm_.htm |Run PHP without a Drupal module}} 
-  * {{ ::7_-_create_a_user_programmatically_and_give_they_a_role_-_drupal_answers_2017-08-04_12-47-53_pm_.htm |Programmatically creating Users and giving them Roles}} 
-  * {{ ::solved--_programmatically_add-update_users_using_user_save_-_drupal.org_2017-08-04_12-43-42_pm_.htm |Programmatically add-update Users with User_Save}} 
-  * {{ ::create_a_node_in_code_-_drupal.org_2017-08-05_12-51-44_pm_.htm |Create a node in code}} 
-  * {{ ::add_php_code_to_the_body_of_a_drupal_7_block_-_drupal.org_2017-08-05_12-54-51_pm_.htm |Add PHP Code to the body of a block}} 
-  * [[drupal: External PHP scripts using Drupal APIs]] 
-  * {{ :create_a_user_account_in_drupal_7_programmatically_-_code_karate_2017-08-13_9-39-17_am_.htm |Create User Account Programmatically}} 
-  * {{ ::programmatically_assign_roles_to_users_in_drupal_-_befused_2017-08-16_9-02-01_am_.htm |Assign Roles to Users Programmatically}} 
-  * {{ ::how_to_assign_role_with_php_in_drupal-_-_stack_overflow_2017-08-16_9-23-10_am_.htm |Assign Role with PHP (Stack Overflow)}} 
-  * {{ ::reading_.csv_into_a_php_array_-_stack_overflow_2017-08-17_8-16-51_am_.htm |Read CSV into PHP array (Stack Overflow)}} 
-  * {{ ::how_to_extract_data_from_csv_file_in_php_-_stack_overflow_2017-12-01_8_23_15_am_.htm |Howto Extract Data from CSV file}} 
-  * {{ ::where_to_put_custom_php_code_functions-_-_drupal.org_2017-08-18_8-47-28_am_.htm |Where to put custom php functions}} 
-  * [[Adding Custom PHP to Drupal chron directory]] 
-  * {{ ::user_globals.php_drupal_7.x_drupal_api_2017-12-01_9_44_18_am_.htm |Documenting the Global $user object}} 
  
-===== Moving A Site ===== 
-  * {{ ::how_to_move_a_drupal_site_to_a_new_host_without_going_crazy_juliakm_2017-08-06_8-23-16_am_.htm |Moving Drupal without Going Crazy}} 
  
-===== Updating Custom User fields ===== +===== Portainer =====
-I added a custom field to the user and needed a way to programmatically put data into that field.  I found the following code on Drupal:+
  
-     $user_fields = user_load($user->uid);     
-     $user_fields->field_points['und'][0]['value'] = $points; 
-     user_save($user_fields); 
-      
-This comes from the following Drupal page: 
-  * {{ ::updating_user_fields_in_drupal_7_-_drupal_answers_2017-12-03_1_36_46_pm_.htm |Updating User Fields in Drupal 7}} 
drupal.1512326283.txt.gz · Last modified: 2017/12/03 13:38 by tomgle