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);
    }
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);
    }
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 ) ; }
Sent to an admin when a user has been registered
@param array $user
@return array
Sent to an admin when a user has been registered