Changeset 08c8c3d in github


Ignore:
Timestamp:
Jul 1, 2009 10:39:00 AM (4 years ago)
Author:
thomascube <thomas@…>
Branches:
master, HEAD, courier-fix, dev-browser-capabilities, pdo, release-0.6, release-0.7, release-0.8
Children:
73967c7
Parents:
9da5edd
Message:

Move 'login' field to the right level + codestyle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • program/include/rcube_user.php

    red205f4 r08c8c3d  
    406406      $standard = 1; 
    407407      foreach ($email_list as $row) { 
    408  
    409408        if (is_array($row)) { 
    410409          $email = $row[0]; 
    411410          $name = $row[1] ? $row[1] : $user_name; 
    412         } else { 
    413           $email = $row; 
    414           $name = $user_name; 
    415         } 
    416  
    417         $plugin = $rcmail->plugins->exec_hook('create_identity', array('record' => array( 
     411        } 
     412        else { 
     413          $email = $row; 
     414          $name = $user_name; 
     415        } 
     416 
     417        $plugin = $rcmail->plugins->exec_hook('create_identity', array( 
    418418          'login' => true, 
    419           'user_id' => $user_id, 
    420           'name' => strip_newlines($name), 
    421           'email' => $email, 
    422           'standard' => $standard))); 
     419          'record' => array( 
     420            'user_id' => $user_id, 
     421            'name' => strip_newlines($name), 
     422            'email' => $email, 
     423            'standard' => $standard, 
     424          ), 
     425        )); 
    423426           
    424427        if (!$plugin['abort'] && $plugin['record']['email']) { 
Note: See TracChangeset for help on using the changeset viewer.