original_string: public function registeredToAdmin(array $user)
      {
          $store = $this->store->get($user['store_id']);
  
          $vars = array(
              '@name' => $user['name'],
              '@store' => $store['name'],
              '@email' => $user['email'],
              '@user_id' => $user['user_id'],
              '@status' => empty($user['status']) ? $this->translation->text('Inactive') : $this->translation->text('Active')
          );
  
          $subject = $this->translation->text('New account on @store', $vars);
          $message = $this->translation->text("A new account has been created on @store\r\n\r\nE-mail: @email\r\nName: @name\r\nUser ID: @user_id\r\nStatus: @status", $vars);
  
          $options = array('from' => $this->store->getConfig('email.0', $store));
          return array($options['from'], $subject, $message, $options);
      }
code: public function registeredToAdmin(array $user)
      {
          $store = $this->store->get($user['store_id']);
  
          $vars = array(
              '@name' => $user['name'],
              '@store' => $store['name'],
              '@email' => $user['email'],
              '@user_id' => $user['user_id'],
              '@status' => empty($user['status']) ? $this->translation->text('Inactive') : $this->translation->text('Active')
          );
  
          $subject = $this->translation->text('New account on @store', $vars);
          $message = $this->translation->text("A new account has been created on @store\r\n\r\nE-mail: @email\r\nName: @name\r\nUser ID: @user_id\r\nStatus: @status", $vars);
  
          $options = array('from' => $this->store->getConfig('email.0', $store));
          return array($options['from'], $subject, $message, $options);
      }
code_tokens: public function registeredToAdmin ( array $ user ) { $ store = $ this -> store -> get ( $ user [ 'store_id' ] ) ; $ vars = array ( '@name' => $ user [ 'name' ] , '@store' => $ store [ 'name' ] , '@email' => $ user [ 'email' ] , '@user_id' => $ user [ 'user_id' ] , '@status' => empty ( $ user [ 'status' ] ) ? $ this -> translation -> text ( 'Inactive' ) : $ this -> translation -> text ( 'Active' ) ) ; $ subject = $ this -> translation -> text ( 'New account on @store' , $ vars ) ; $ message = $ this -> translation -> text ( "A new account has been created on @store\r\n\r\nE-mail: @email\r\nName: @name\r\nUser ID: @user_id\r\nStatus: @status" , $ vars ) ; $ options = array ( 'from' => $ this -> store -> getConfig ( 'email.0' , $ store ) ) ; return array ( $ options [ 'from' ] , $ subject , $ message , $ options ) ; }
docstring: Sent to an admin when a user has been registered
  @param array $user
  @return array
docstring_tokens: Sent to an admin when a user has been registered